Remove newline

This commit is contained in:
Behdad Esfahbod 2012-01-22 16:21:19 -05:00
parent e4ccbfe276
commit 3c9a39ecd6
1 changed files with 2 additions and 0 deletions

View File

@ -188,6 +188,8 @@ class UtilMains:
line = sys.stdin.readline ()
if not len (line):
break
if line[-1] == '\n':
line = line[:-1]
print callback (line)
else:
args = sys.argv[1:]