Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7e5f405

Browse files
fixed diff calculation
1 parent b49a628 commit 7e5f405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Github-Automation/diffcalc.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
def calcDiff(firstFile , secondFile):
44
diff = difflib.ndiff(firstFile , secondFile)
5-
delta = ''.join(x[2:] for x in diff if x.startswith('- '))
5+
delta = ''.join(x[2:] for x in diff if x.startswith('+ '))
66
deltaNoSpace = delta.split('\n')
77
print('CHANGED LINES ARE:-\n-----------------')
88
for ele in deltaNoSpace:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /