Show More
@@ -66,7 +66,7 b' def get_pasted_lines(sentinel, l_input=py3compat.input, quiet=False):' | |||
|
66 | 66 | prompt = "" |
|
67 | 67 | while True: |
|
68 | 68 | try: |
|
69 | l = l_input(prompt) | |
|
69 | l = py3compat.str_to_unicode(l_input(prompt)) | |
|
70 | 70 | if l == sentinel: |
|
71 | 71 | return |
|
72 | 72 | else: |
@@ -181,7 +181,7 b' class TerminalMagics(Magics):' | |||
|
181 | 181 | |
|
182 | 182 | quiet = ('q' in opts) |
|
183 | 183 | |
|
184 | sentinel = opts.get('s', '--') | |
|
184 | sentinel = opts.get('s', u'--') | |
|
185 | 185 | block = '\n'.join(get_pasted_lines(sentinel, quiet=quiet)) |
|
186 | 186 | self.store_or_execute(block, name) |
|
187 | 187 |
General Comments 0
You need to be logged in to leave comments.
Login now