瀏覽代碼

Remove unused parameter

Steven Myint 12 年之前
父節點
當前提交
59f4bea82a
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      src/cdiff.py

+ 2
- 2
src/cdiff.py 查看文件

@@ -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)