Browse files

- fix use of .strip()

  • Loading branch information...
1 parent 1a4832f commit f84a108e2681df3c4bfe4eb0a1879cc808f469ea @DisposaBoy committed Jan 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 thatcher.py
View
4 thatcher.py
@@ -44,8 +44,8 @@ def patch(editor, diff):
while sp < ep:
p, ln = patch[sp]
if p == '@@':
- ln = ln.strip('').split(' ')
- if len(ln) > 2 and ln[0][0] == '-' and ln[1][0] == '+' and ln[2].strip('') == '@@':
+ ln = ln.strip().split(' ')
+ if len(ln) > 2 and ln[0][0] == '-' and ln[1][0] == '+' and ln[2].strip() == '@@':
ed_index = ln[1][1:].split(',')
ed_index = int(ed_index[0]) - 1
sp += 1

0 comments on commit f84a108

Please sign in to comment.