[stem/master] Minor pylint corrections

commit 924e1bd3d3a9b7b0578ad9b9bb86a86d0278ff3b Author: Damian Johnson <atagar@torproject.org> Date: Mon Mar 12 19:25:06 2012 -0700 Minor pylint corrections --- stem/descriptor/reader.py | 6 +++++- stem/socket.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/stem/descriptor/reader.py b/stem/descriptor/reader.py index 6af2fc6..3b6e04a 100644 --- a/stem/descriptor/reader.py +++ b/stem/descriptor/reader.py @@ -81,6 +81,7 @@ class AlreadyRead(FileSkipped): "Already read a file with this 'last modified' timestamp or later." def __init__(self, last_modified, last_modified_when_read): + FileSkipped.__init__(self) self.last_modified = last_modified self.last_modified_when_read = last_modified_when_read @@ -88,18 +89,21 @@ class ParsingFailure(FileSkipped): "File contents could not be parsed as descriptor data." def __init__(self, parsing_exception): + FileSkipped.__init__(self) self.exception = parsing_exception class UnrecognizedType(FileSkipped): "File's mime type indicates that it isn't descriptor data." def __init__(self, mime_type): + FileSkipped.__init__(self) self.mime_type = mime_type class ReadFailed(FileSkipped): "An IOError occured while trying to read the file." def __init__(self, read_exception): + FileSkipped.__init__(self) self.exception = read_exception class FileMissing(ReadFailed): @@ -378,6 +382,6 @@ class DescriptorReader: def __enter__(self): self.start() - def __exit__(self, type, value, traceback): + def __exit__(self, exit_type, value, traceback): self.stop() diff --git a/stem/socket.py b/stem/socket.py index 7f15df6..a9003b0 100644 --- a/stem/socket.py +++ b/stem/socket.py @@ -254,7 +254,7 @@ class ControlSocket: def __enter__(self): return self - def __exit__(self, type, value, traceback): + def __exit__(self, exit_type, value, traceback): self.close() def _connect(self):
participants (1)
-
atagar@torproject.org