summaryrefslogtreecommitdiffstats
path: root/apps/patchwork/parser.py
diff options
context:
space:
mode:
authorNate Case <ncase@xes-inc.com>2008-08-23 11:03:18 +0800
committerJeremy Kerr <jk@ozlabs.org>2008-08-23 11:03:18 +0800
commit05d26756d7e7f254d5631a0649aeac5fd3a58ca8 (patch)
treed40b4861766912d9a15cd412f5df7b4d3bd1452d /apps/patchwork/parser.py
parent04767c65175f2a76127cd78649c5d92a82a39bb6 (diff)
downloadpatchwork-05d26756d7e7f254d5631a0649aeac5fd3a58ca8.tar.bz2
patchwork-05d26756d7e7f254d5631a0649aeac5fd3a58ca8.tar.xz
In some places tabs are used instead of spaces for indentation,
even when other lines of a method are indented with spaces. This gets rid of all tabs and uses spaces everywhere. [Reworked to apply on newer code by Jeremy] Signed-off-by: Nate Case <ncase@xes-inc.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps/patchwork/parser.py')
-rw-r--r--apps/patchwork/parser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/patchwork/parser.py b/apps/patchwork/parser.py
index bb6fce0..021dbcd 100644
--- a/apps/patchwork/parser.py
+++ b/apps/patchwork/parser.py
@@ -170,8 +170,8 @@ def patch_hash(str):
if len(line) <= 0:
continue
- hunk_match = _hunk_re.match(line)
- filename_match = _filename_re.match(line)
+ hunk_match = _hunk_re.match(line)
+ filename_match = _filename_re.match(line)
if filename_match:
# normalise -p1 top-directories
@@ -184,7 +184,7 @@ def patch_hash(str):
line = filename_match.group(1) + ' ' + filename
- elif hunk_match:
+ elif hunk_match:
# remove line numbers
def fn(x):
if not x: