From 2afcf07d80f9d97db3593f2b14f1e1f16af7ac19 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Wed, 23 Dec 2020 20:50:59 +1100 Subject: [PATCH] docs: fix simple typo, instatiates -> instantiates There is a small typo in shadowsocks/eventloop.py. Should read `instantiates` rather than `instatiates`. --- shadowsocks/eventloop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/eventloop.py b/shadowsocks/eventloop.py index ce9c11bc..d4e8e9d0 100644 --- a/shadowsocks/eventloop.py +++ b/shadowsocks/eventloop.py @@ -231,7 +231,7 @@ def errno_from_exception(e): """Provides the errno from an Exception object. There are cases that the errno attribute was not set so we pull - the errno out of the args but if someone instatiates an Exception + the errno out of the args but if someone instantiates an Exception without any args you will get a tuple error. So this function abstracts all that behavior to give you a safe way to get the errno.