Commits

Vadim Fint  committed f423f27

Whitespace fixups in whole file

  • Participants
  • Parent commits 7d50fc7

Comments (0)

Files changed (1)

                 return rv
         return rv
 
-
     def write(self, fp):
         delta = len(self.before) + len(self.after)
         if self.after and self.after[-1] == '\\ No newline at end of file\n':
             if r == 7:
                 c = shelve.__doc__.find('y - shelve this change')
                 for l in shelve.__doc__[c:].splitlines():
-                    if l: ui.write(_(l.strip()) + '\n')
+                    if l:
+                        ui.write(_(l.strip()) + '\n')
                 continue
             elif r == 0: # yes
                 ret = 'y'
 
     # List all the active shelves by name and return '
     if opts['list']:
-        listshelves(ui,repo)
+        listshelves(ui, repo)
         return
 
     forced = opts['force'] or opts['append']
         # set of files to be processed
         contenders = {}
         for h in chunks:
-            try: contenders.update(dict.fromkeys(h.files()))
-            except AttributeError: pass
+            try:
+                contenders.update(dict.fromkeys(h.files()))
+            except AttributeError:
+                pass
 
         # exclude sources of copies that are otherwise untouched
         newfiles = set(f for f in files if f in contenders)
     # wrap ui.write so diff output can be labeled/colorized
     def wrapwrite(orig, *args, **kw):
         label = kw.pop('label', '')
-        if label: label += ' '
+        if label:
+            label += ' '
         for chunk, l in patch.difflabel(lambda: args):
             orig(chunk, label=label + l)
     oldwrite = ui.write
 
     # List all the active shelves by name and return '
     if opts['list']:
-        listshelves(ui,repo)
+        listshelves(ui, repo)
         return
 
     try:
             # wrap ui.write so diff output can be labeled/colorized
             def wrapwrite(orig, *args, **kw):
                 label = kw.pop('label', '')
-                if label: label += ' '
+                if label:
+                    label += ' '
                 for chunk, l in patch.difflabel(lambda: args):
                     orig(chunk, label=label + l)
             oldwrite = ui.write