Skip to content

Commit 64f8554

Browse files
committed
remove extra line in the output
1 parent 013f0e4 commit 64f8554

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

line_profiler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
# -*- coding: UTF-8 -*-
3+
from __future__ import print_function
34
try:
45
import cPickle as pickle
56
except ImportError:
@@ -307,7 +308,7 @@ def magic_lprun(self, parameter_s=''):
307308
page(output, screen_lines=self.shell.rc.screen_length)
308309
else:
309310
page(output)
310-
print(message)
311+
print(message, end="")
311312

312313
dump_file = opts.D[0]
313314
if dump_file:

0 commit comments

Comments
 (0)