File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 17
17
entry_points = {
18
18
'console_scripts' : [
19
19
"ghdiff = ghdiff:main"
20
- ]
21
- },
22
- )
20
+ ]
21
+ },
22
+ )
Original file line number Diff line number Diff line change @@ -85,8 +85,8 @@ def _colorize(diff):
85
85
_next = []
86
86
while lines and len (_next ) < 2 :
87
87
_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 ("+" , "-" )):
90
90
aline , bline = _line_diff (line [1 :], _next .pop (0 )[1 :])
91
91
yield '<div class="delete">-%s</div>' % (aline ,)
92
92
yield '<div class="insert">+%s</div>' % (bline ,)
Original file line number Diff line number Diff line change 7
7
import tempfile
8
8
import unittest
9
9
10
+
10
11
class GhDiffTest (unittest .TestCase ):
11
12
12
13
def write_file (self , text ):
You can’t perform that action at this time.
0 commit comments