Michael Pasternak has uploaded a new change for review.

Change subject: cli: do not use preserved "type" as param name
......................................................................

cli: do not use preserved "type" as param name

Change-Id: If709df3d9c63ae77c19f2b52cad27e5490b46481
Signed-off-by: Michael pasternak <mpast...@redhat.com>
---
M src/cli/context.py
1 file changed, 5 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-cli refs/changes/01/14301/1

diff --git a/src/cli/context.py b/src/cli/context.py
index 06128ed..cbf12d3 100644
--- a/src/cli/context.py
+++ b/src/cli/context.py
@@ -331,14 +331,14 @@
 
     def _setup_io_streams(self, redirections=[]):
         """INTERNAL: set up standard input/output/error."""
-        for type, arg in redirections:
-            if type == '<':
+        for type_, arg in redirections:
+            if type_ == '<':
                 self.terminal.stdin = file(arg)
-            elif type == '<<':
+            elif type_ == '<<':
                 self.terminal.stdin = StringIO(arg)
-            elif type == '>':
+            elif type_ == '>':
                 self.terminal.stdout = file(arg, 'w')
-            elif type == '>>':
+            elif type_ == '>>':
                 self.terminal.stdout = file(arg, 'a')
 
     def _restore_io_streams(self):


--
To view, visit http://gerrit.ovirt.org/14301
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If709df3d9c63ae77c19f2b52cad27e5490b46481
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-cli
Gerrit-Branch: master
Gerrit-Owner: Michael Pasternak <mpast...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to