Remove newline
This commit is contained in:
parent
e4ccbfe276
commit
3c9a39ecd6
|
@ -188,6 +188,8 @@ class UtilMains:
|
||||||
line = sys.stdin.readline ()
|
line = sys.stdin.readline ()
|
||||||
if not len (line):
|
if not len (line):
|
||||||
break
|
break
|
||||||
|
if line[-1] == '\n':
|
||||||
|
line = line[:-1]
|
||||||
print callback (line)
|
print callback (line)
|
||||||
else:
|
else:
|
||||||
args = sys.argv[1:]
|
args = sys.argv[1:]
|
||||||
|
|
Loading…
Reference in New Issue