瀏覽代碼

Remove unused parameter

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

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

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)