changeset 11304:8c377f2feee1

cleanups: unused variables
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Tue, 08 Jun 2010 09:30:33 +0200
parents a1aad8333864
children d4cafcb63f77
files mercurial/revset.py mercurial/win32.py
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revset.py	Mon Jun 07 20:03:32 2010 +0200
+++ b/mercurial/revset.py	Tue Jun 08 09:30:33 2010 +0200
@@ -288,7 +288,6 @@
                 continue
     else:
         for r in subset:
-            c = repo[r]
             for f in repo[r].manifest():
                 if m(f):
                     s.append(r)
--- a/mercurial/win32.py	Mon Jun 07 20:03:32 2010 +0200
+++ b/mercurial/win32.py	Tue Jun 08 09:30:33 2010 +0200
@@ -32,7 +32,7 @@
                 pass
             # Fake hardlinking error
             raise OSError(errno.EINVAL, 'Hardlinking not supported')
-    except pywintypes.error, details:
+    except pywintypes.error:
         raise OSError(errno.EINVAL, 'target implements hardlinks improperly')
     except NotImplementedError: # Another fake error win Win98
         raise OSError(errno.EINVAL, 'Hardlinking not supported')