Commits

Yuya Nishihara committed 21ec314

docdiff: don't clobber 'base' argument (fixes #2076)

f5ff1858e79e changed to overwrite 'base' by basename of 'output' argument,
which is unwanted side effect, I guess.

  • Participants
  • Parent commits a0fc273
  • Branches stable

Comments (0)

Files changed (1)

         sys.exit(1)
     elif len(args) == 2:
         local, other = [os.path.abspath(f) for f in args]
-        base, ext = os.path.splitext(local)
+        _base, ext = os.path.splitext(local)
     else:
         local, base, other, output = [os.path.abspath(f) for f in args]
-        base, ext = os.path.splitext(output)
+        _base, ext = os.path.splitext(output)
 
     if not ext or ext.lower()[1:] not in scripts.keys():
         print 'Unsupported file type', ext