rename "output","error" -> "stdout","stderr" in VCS._u_invoke()
authorW. Trevor King <wking@drexel.edu>
Tue, 17 Nov 2009 13:21:56 +0000 (08:21 -0500)
committerW. Trevor King <wking@drexel.edu>
Tue, 17 Nov 2009 13:21:56 +0000 (08:21 -0500)
libbe/vcs.py

index 74846608a5eb47de9f3818bbf6b87567d0a2dcd3..c260af11fb4554b86f0c9a2228e61d20578c7290 100644 (file)
@@ -474,13 +474,13 @@ class VCS(object):
                           shell=True, cwd=cwd)
         except OSError, e :
             raise CommandError(args, status=e.args[0], stdout="", stderr=e)
-        output,error = q.communicate(input=stdin)
+        stdout,stderr = q.communicate(input=stdin)
         status = q.wait()
         if self.verboseInvoke == True:
-            print >> sys.stderr, "%d\n%s%s" % (status, output, error)
+            print >> sys.stderr, "%d\n%s%s" % (status, stdout, stderr)
         if status not in expect:
-            raise CommandError(args, status, output, error)
-        return status, output, error
+            raise CommandStderr(args, status, stdout, stderr)
+        return status, stdout, stderr
     def _u_invoke_client(self, *args, **kwargs):
         directory = kwargs.get('directory',None)
         expect = kwargs.get('expect', (0,))