1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-07 13:23:29 +00:00

fix relative cmpignore for #149

This commit is contained in:
deadc0de6
2019-06-08 11:47:30 +02:00
parent a89fae29cf
commit 469a827f7d
3 changed files with 18 additions and 34 deletions

View File

@@ -115,9 +115,9 @@ class Comparator:
def _diff(self, left, right, header=False):
"""diff using the unix tool diff"""
d = diff(left, right, raw=False,
opts=self.diffopts, debug=self.debug)
out = diff(left, right, raw=False,
opts=self.diffopts, debug=self.debug)
if header:
lshort = os.path.basename(left)
d = '=> diff \"{}\":\n{}'.format(lshort, diff)
return d
out = '=> diff \"{}\":\n{}'.format(lshort, out)
return out