Преглед изворни кода

Remove function that was made redundant

Steven Myint пре 12 година
родитељ
комит
0119015a70
1 измењених фајлова са 1 додато и 6 уклоњено
  1. 1
    6
      src/cdiff.py

+ 1
- 6
src/cdiff.py Прегледај датотеку

@@ -490,16 +490,11 @@ def check_command_status(arguments):
490 490
         return False
491 491
 
492 492
 
493
-def command_pipe(arguments):
494
-    """Return stdout pipe after starting subprocess."""
495
-    return subprocess.Popen(arguments, stdout=subprocess.PIPE).stdout
496
-
497
-
498 493
 def revision_control_diff(path):
499 494
     """Return diff from revision control system."""
500 495
     for check, diff in REVISION_CONTROL:
501 496
         if check_command_status(check):
502
-            return command_pipe(diff)
497
+            return subprocess.Popen(diff, stdout=subprocess.PIPE).stdout
503 498
 
504 499
 
505 500
 def decode(line):