Browse Source

Remove unused parameter

Steven Myint 12 years ago
parent
commit
59f4bea82a
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/cdiff.py

+ 2
- 2
src/cdiff.py View File

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