Skip to content

Commit

Permalink
style cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kilink committed Apr 6, 2014
1 parent 188bc48 commit 23f9a77
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
entry_points={
'console_scripts': [
"ghdiff = ghdiff:main"
]
},
)
]
},
)
4 changes: 2 additions & 2 deletions src/ghdiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ def _colorize(diff):
_next = []
while lines and len(_next) < 2:
_next.append(lines.pop())
if _next[0].startswith("+") and (len(_next) == 1
or _next[1][0] not in ("+", "-")):
if _next[0].startswith("+") and (
len(_next) == 1 or _next[1][0] not in ("+", "-")):
aline, bline = _line_diff(line[1:], _next.pop(0)[1:])
yield '<div class="delete">-%s</div>' % (aline,)
yield '<div class="insert">+%s</div>' % (bline,)
Expand Down
1 change: 1 addition & 0 deletions src/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import tempfile
import unittest


class GhDiffTest(unittest.TestCase):

def write_file(self, text):
Expand Down

0 comments on commit 23f9a77

Please sign in to comment.