Skip to content

Commit 20b1255

Browse files
committed
Implicitly convert arguments into unicode
1 parent ade8bdf commit 20b1255

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

bessctl/bessctl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,13 @@ def main():
142142
line_buf = []
143143

144144
for arg in sys.argv[1:]:
145-
arg = arg.decode()
146145
if arg == '--':
147146
cmds.append(' '.join(line_buf))
148147
line_buf = []
149148
else:
150149
line_buf.append(arg)
151150

152-
cmds.append(' '.join(line_buf))
151+
cmds.append(u' '.join(line_buf))
153152
run_cli(io.StringIO('\n'.join(cmds)))
154153

155154
if __name__ == '__main__':

0 commit comments

Comments
 (0)