Skip to content

Commit 669dff4

Browse files
committed
Fix issue with one file diff shim
1 parent 1094d41 commit 669dff4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

webdiff/argparser.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,8 @@ def parse(args):
8080
# TODO: move into dirdiff?
8181
def _shim_for_file_diff(a_file, b_file):
8282
'''Sets A_DIR, B_DIR and DIFF to do a one-file diff.'''
83-
dirname = os.path.dirname
84-
basename = os.path.basename
85-
return LocalFileDiff(dirname(a_file), basename(a_file),
86-
dirname(b_file), basename(b_file),
83+
return LocalFileDiff(os.path.dirname(a_file), a_file,
84+
os.path.dirname(b_file), b_file,
8785
False) # probably not a move
8886

8987

0 commit comments

Comments
 (0)