[stem/master] tor-prompt printed oddball '()'

commit 28d417a328dcdbbc2db3965816ddc7e28fb18621 Author: Damian Johnson <atagar@torproject.org> Date: Sat Jan 3 18:18:35 2015 -0800 tor-prompt printed oddball '()' That's interesting. In python2 having "print()" is the same as "print('()')". Weird, but ok - giving it an empty string to fix it. --- stem/interpreter/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stem/interpreter/__init__.py b/stem/interpreter/__init__.py index c96e11c..d9828f7 100644 --- a/stem/interpreter/__init__.py +++ b/stem/interpreter/__init__.py @@ -121,7 +121,7 @@ def main(): line_format = HEADER_BOLD_OUTPUT if line.startswith(' ') else HEADER_OUTPUT print(format(line, *line_format)) - print() + print('') while True: try: @@ -137,5 +137,5 @@ def main(): if response is not None: print(response) except (KeyboardInterrupt, EOFError, stem.SocketClosed) as exc: - print() # move cursor to the following line + print('') # move cursor to the following line break
participants (1)
-
atagar@torproject.org