summaryrefslogtreecommitdiffstats
path: root/engine/src/tools/lib/common.py
diff options
context:
space:
mode:
authorArthur Martella <arthur.martella.1@att.com>2020-01-29 11:35:34 -0500
committerArthur Martella <arthur.martella.1@att.com>2020-01-31 14:59:15 -0500
commita89a4014895a67eadef2a4091c78506117fc2de5 (patch)
tree5c7fa307fe0f44fc54b34bf47d03a83e1a89f5ea /engine/src/tools/lib/common.py
parent0a81d20a553e3c4ee133136f8d3c07eeb6d8b3b6 (diff)
Bugfixes for Python 3 conversion
Issue-ID: OPTFRA-646 Signed-off-by: Martella, Arthur <arthur.martella.1@att.com> Change-Id: Icd9838a54fe13004a94eafbd1d9d1ffc5a5686a6
Diffstat (limited to 'engine/src/tools/lib/common.py')
-rw-r--r--engine/src/tools/lib/common.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/src/tools/lib/common.py b/engine/src/tools/lib/common.py
index 4973f4e..643e988 100644
--- a/engine/src/tools/lib/common.py
+++ b/engine/src/tools/lib/common.py
@@ -37,7 +37,7 @@ def set_argument(arg=None, prompt=None, multiline=False):
if sys.stdin in select.select([sys.stdin], [], [], .5)[0]:
message = sys.stdin.readlines()
else:
- print prompt,
+ print(prompt)
if multiline:
sentinel = ''
message = list(iter(raw_input, sentinel))
@@ -64,10 +64,10 @@ if __name__ == "__main__":
msg = set_argument(sys.argv[0])
for row in msg:
- print row,
- print "\n", list2string(msg)
+ print(row)
+ print("\n", list2string(msg))
msg = set_argument(prompt="Message? ")
for row in msg:
- print row,
- print "\n", list2string(msg)
+ print(row)
+ print("\n", list2string(msg))