404dfd62a3ec webui

Whitespace changes to make TextMate happier.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sat, 06 Feb 2010 10:10:47 -0500
parents e5f1f96f7d75
children 649e19f4c2e8
branches/tags webui
files bundled/webpy/web/utils.py review/api.py review/extension_ui.py review/tests/util.py

Changes

--- a/bundled/webpy/web/utils.py	Sat Feb 06 15:19:53 2010 +0100
+++ b/bundled/webpy/web/utils.py	Sat Feb 06 10:10:47 2010 -0500
@@ -1,3 +1,4 @@
+
 #!/usr/bin/env python
 """
 General Utilities
--- a/review/api.py	Sat Feb 06 15:19:53 2010 +0100
+++ b/review/api.py	Sat Feb 06 10:10:47 2010 -0500
@@ -15,21 +15,21 @@
     from os.path import curdir, abspath, sep, commonprefix, pardir, join
     def relpath(path, start=curdir):
         """Return a relative version of a path"""
-
+        
         if not path:
             raise ValueError("no path specified")
-
+        
         start_list = abspath(start).split(sep)
         path_list = abspath(path).split(sep)
-
+        
         # Work out how much of the filepath is shared by start and path.
         i = len(commonprefix([start_list, path_list]))
-
+        
         rel_list = [pardir] * (len(start_list)-i) + path_list[i:]
         if not rel_list:
             return curdir
         return join(*rel_list)
-
+    
 
 DEFAULT_DATASTORE_DIRNAME = 'code-review'
 
--- a/review/extension_ui.py	Sat Feb 06 15:19:53 2010 +0100
+++ b/review/extension_ui.py	Sat Feb 06 10:10:47 2010 -0500
@@ -216,10 +216,10 @@
             for comment in skipped_comments:
                 _print_comment(comment)
 
+
 _review_effects = {'deleted': ['red'],
                    'inserted': ['green'],
-                   'comments': ['cyan'],
-                   }
+                   'comments': ['cyan'],}
 
 _review_re = [(re.compile(r'^(?P<rest> *\d+:  )(?P<colorized>[-].*)'), 'deleted'),
               (re.compile(r'^(?P<rest> *\d+:  )(?P<colorized>[+].*)'), 'inserted'),
@@ -240,6 +240,7 @@
                                              render_effects(m.group('colorized'), _review_effects[style]))
                         break
         return '\n'.join(lines)
+    
     orig(*[_colorize(s) for s in args])
 
 def colorreview(orig, ui, repo, *fnames, **opts):
@@ -260,6 +261,7 @@
     except KeyError:
         pass
 
+
 def review(ui, repo, *fnames, **opts):
     """code review changesets in the current repository
     
--- a/review/tests/util.py	Sat Feb 06 15:19:53 2010 +0100
+++ b/review/tests/util.py	Sat Feb 06 10:10:47 2010 -0500
@@ -10,13 +10,13 @@
 def review(init=False, comment=False, signoff=False, yes=False, no=False,
     force=False, message='', rev='.', local_path='', remote_path='', lines='',
     files=None, unified='5', web=False):
-
+    
     if not files:
         files = []
     
     _ui.pushbuffer()
     extension_ui.review(_ui, get_sandbox_repo(), *files,
-        **dict(init=init, comment=comment, signoff=signoff, yes=yes, no=no, 
+        **dict(init=init, comment=comment, signoff=signoff, yes=yes, no=no,
         force=force, message=message, rev=rev, local_path=local_path,
         remote_path=remote_path, lines=lines, unified=unified, web=web))
     output = _ui.popbuffer()