From: Eric S. Raymond Date: Sun, 7 Oct 2012 07:09:10 +0000 (-0400) Subject: pylint cleanup. X-Git-Tag: 1.9~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7907f46ccdaad6369563274381aebb6e726a5b6f;p=irker.git pylint cleanup. --- diff --git a/Makefile b/Makefile index f77624c..06f4fc4 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ clean: rm -f irkerd.8 irkerhook.1 irker-*.tar.gz *~ rm -f SHIPPER.* *.html -PYLINTOPTS = --rcfile=/dev/null --reports=n --include-ids=y --disable="C0103,C0111,C0301,R0201,R0902,R0903,R0912,E1101,W0201,W0621,W0702,F0401" +PYLINTOPTS = --rcfile=/dev/null --reports=n --include-ids=y --disable="C0103,C0111,C0301,R0201,R0902,R0903,R0912,R0915,E1101,W0201,W0621,W0702,F0401" pylint: @pylint --output-format=parseable $(PYLINTOPTS) irkerd @pylint --output-format=parseable $(PYLINTOPTS) irkerhook.py diff --git a/irkerd b/irkerd index 5b4e096..321bb5f 100755 --- a/irkerd +++ b/irkerd @@ -62,7 +62,7 @@ except ImportError: CONNECTION_MAX = 200 green_threads = False -import sys, getopt, urlparse, time, random, socket, signal +import sys, getopt, urlparse, time, random, socket import threading, Queue, SocketServer import irc.client, logging try: @@ -262,7 +262,7 @@ class Connection: # This is so we can see tracebacks for errors inside the thread # when we need to be able to for debugging purposes. if debuglvl > 0: - raise exc_type, exc_value, exc_traceback + raise exc_type, _exc_value, exc_traceback def live(self): "Should this connection not be scavenged?" return self.status != "expired"