hgext/record.py
changeset 10282 08a0f04b56bd
parent 10263 25e572394f5c
child 10323 0aa59f532ef9
--- a/hgext/record.py	Mon Jan 25 00:05:22 2010 -0600
+++ b/hgext/record.py	Mon Jan 25 00:05:27 2010 -0600
@@ -297,7 +297,8 @@
                 doc = gettext(record.__doc__)
                 c = doc.find(_('y - record this change'))
                 for l in doc[c:].splitlines():
-                    if l: ui.write(l.strip(), '\n')
+                    if l:
+                        ui.write(l.strip(), '\n')
                 continue
             elif r == 0: # yes
                 ret = True
@@ -437,8 +438,10 @@
 
         contenders = set()
         for h in chunks:
-            try: contenders.update(set(h.files()))
-            except AttributeError: pass
+            try:
+                contenders.update(set(h.files()))
+            except AttributeError:
+                pass
 
         changed = changes[0] + changes[1] + changes[2]
         newfiles = [f for f in changed if f in contenders]