Skip to content

Commit 23f9a77

Browse files
committed
style cleanup
1 parent 188bc48 commit 23f9a77

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

setup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
entry_points={
1818
'console_scripts': [
1919
"ghdiff = ghdiff:main"
20-
]
21-
},
22-
)
20+
]
21+
},
22+
)

src/ghdiff.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ def _colorize(diff):
8585
_next = []
8686
while lines and len(_next) < 2:
8787
_next.append(lines.pop())
88-
if _next[0].startswith("+") and (len(_next) == 1
89-
or _next[1][0] not in ("+", "-")):
88+
if _next[0].startswith("+") and (
89+
len(_next) == 1 or _next[1][0] not in ("+", "-")):
9090
aline, bline = _line_diff(line[1:], _next.pop(0)[1:])
9191
yield '<div class="delete">-%s</div>' % (aline,)
9292
yield '<div class="insert">+%s</div>' % (bline,)

src/tests.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import tempfile
88
import unittest
99

10+
1011
class GhDiffTest(unittest.TestCase):
1112

1213
def write_file(self, text):

0 commit comments

Comments
 (0)