mercurial/keepalive.py
changeset 7875 553aa0cbeab6
parent 7874 d812029cda85
child 8146 4f13ed6ee544
--- a/mercurial/keepalive.py	Mon Mar 23 13:13:02 2009 +0100
+++ b/mercurial/keepalive.py	Mon Mar 23 13:13:06 2009 +0100
@@ -447,7 +447,6 @@
         return value
 
     def readline(self, limit=-1):
-        data = ""
         i = self._rbuf.find('\n')
         while i < 0 and not (0 < limit <= len(self._rbuf)):
             new = self._raw_read(self._rbufsize)
@@ -616,7 +615,7 @@
 def test(url, N=10):
     print "checking error hander (do this on a non-200)"
     try: error_handler(url)
-    except IOError, e:
+    except IOError:
         print "exiting - exception will prevent further tests"
         sys.exit()
     print