changeset 3474:fd8f1110562c

fix errors spotted by pychecker
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Thu, 19 Oct 2006 16:55:34 +0200
parents 0e68608bd11d
children 2ed139c3b328
files mercurial/revlog.py mercurial/ui.py
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Thu Oct 19 14:16:51 2006 +0200
+++ b/mercurial/revlog.py	Thu Oct 19 16:55:34 2006 +0200
@@ -737,7 +737,7 @@
         c = []
         p = self.rev(node)
         for r in range(p + 1, self.count()):
-            for pr in self.parentrevs(n):
+            for pr in self.parentrevs(r):
                 if pr == p:
                     c.append(self.node(r))
         return c
--- a/mercurial/ui.py	Thu Oct 19 14:16:51 2006 +0200
+++ b/mercurial/ui.py	Thu Oct 19 16:55:34 2006 +0200
@@ -111,7 +111,8 @@
         try:
             cdata.read(filename)
         except ConfigParser.ParsingError, inst:
-            raise util.Abort(_("failed to parse %s\n%s") % (f, inst))
+            raise util.Abort(_("failed to parse %s\n%s") % (filename,
+                                                            inst))
 
         for section in sections:
             if not cdata.has_section(section):