diff options
author | elie <elie> | 2013-06-04 06:26:02 +0000 |
---|---|---|
committer | elie <elie> | 2013-06-04 06:26:02 +0000 |
commit | bc0048832fa14efa514fcd8c9fb666d683a8645d (patch) | |
tree | a92712b1ca91ddf0b07500c19c1aaed64e5e3de5 /pysnmp/carrier | |
parent | b7c4ef6e38d81a9a6afb92eda07fa4c480b77fbf (diff) | |
download | pysnmp-git-bc0048832fa14efa514fcd8c9fb666d683a8645d.tar.gz |
unused variables, imports; wrong indentation; undefined prototype attribues
all the things that bothers linter
Diffstat (limited to 'pysnmp/carrier')
-rw-r--r-- | pysnmp/carrier/asyncore/dgram/base.py | 2 | ||||
-rw-r--r-- | pysnmp/carrier/asyncore/dispatch.py | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/pysnmp/carrier/asyncore/dgram/base.py b/pysnmp/carrier/asyncore/dgram/base.py index a454c017..627c62d2 100644 --- a/pysnmp/carrier/asyncore/dgram/base.py +++ b/pysnmp/carrier/asyncore/dgram/base.py @@ -12,7 +12,7 @@ sockErrors = { # Ignore these socket errors errno.EAGAIN: 0, errno.EWOULDBLOCK: 0 } -if 'EBADFD' in errno: +if hasattr(errno, 'EBADFD'): # bad FD may happen upon FD closure on n-1 select() event sockErrors[errno.EBADFD] = 1 diff --git a/pysnmp/carrier/asyncore/dispatch.py b/pysnmp/carrier/asyncore/dispatch.py index ff5c25c8..42d256ae 100644 --- a/pysnmp/carrier/asyncore/dispatch.py +++ b/pysnmp/carrier/asyncore/dispatch.py @@ -1,6 +1,5 @@ # Implements I/O over asynchronous sockets from time import time -from select import select from sys import exc_info from asyncore import socket_map from asyncore import loop |