--- a/review/extension_ui.py Tue Mar 02 18:39:42 2010 -0500
+++ b/review/extension_ui.py Tue Mar 02 18:43:34 2010 -0500
@@ -217,13 +217,16 @@
_print_comment(comment)
-_review_effects = {'deleted': ['red'],
- 'inserted': ['green'],
- 'comments': ['cyan'],}
-
-_review_re = [(re.compile(r'^(?P<rest> *\d+: )(?P<colorized>[-].*)'), 'deleted'),
- (re.compile(r'^(?P<rest> *\d+: )(?P<colorized>[+].*)'), 'inserted'),
- (re.compile(r'^(?P<colorized>#.*)'), 'comments'),]
+_review_effects = {
+ 'deleted': ['red'],
+ 'inserted': ['green'],
+ 'comments': ['cyan'],
+}
+_review_re = [
+ (re.compile(r'^(?P<rest> *\d+: )(?P<colorized>[-].*)'), 'deleted'),
+ (re.compile(r'^(?P<rest> *\d+: )(?P<colorized>[+].*)'), 'inserted'),
+ (re.compile(r'^(?P<colorized>#.*)'), 'comments'),
+]
def colorwrap(orig, *args):
'''wrap ui.write for colored diff output'''