Explorar el Código

Remove unused parameter

Steven Myint hace 12 años
padre
commit
59f4bea82a
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/cdiff.py

+ 2
- 2
src/cdiff.py Ver fichero

@@ -490,7 +490,7 @@ def check_command_status(arguments):
490 490
         return False
491 491
 
492 492
 
493
-def revision_control_diff(path):
493
+def revision_control_diff():
494 494
     """Return diff from revision control system."""
495 495
     for check, diff in REVISION_CONTROL:
496 496
         if check_command_status(check):
@@ -527,7 +527,7 @@ if __name__ == '__main__':
527 527
         else:
528 528
             diff_hdl = open(args[0], mode='rt')
529 529
     elif sys.stdin.isatty():
530
-        diff_hdl = revision_control_diff(os.getcwd())
530
+        diff_hdl = revision_control_diff()
531 531
         if not diff_hdl:
532 532
             parser.print_help()
533 533
             sys.exit(1)