Show More
@@ -27,6 +27,7 b' from IPython.utils.text import format_screen, dedent, indent' | |||
|
27 | 27 | from IPython.testing.skipdoctest import skip_doctest |
|
28 | 28 | from IPython.utils.ipstruct import Struct |
|
29 | 29 | from IPython.utils.path import unquote_filename |
|
30 | from IPython.utils.py3compat import unicode_type | |
|
30 | 31 | from IPython.utils.warn import warn, error |
|
31 | 32 | |
|
32 | 33 | #----------------------------------------------------------------------------- |
@@ -599,7 +600,7 b' Defaulting color scheme to \'NoColor\'"""' | |||
|
599 | 600 | 'format. The filename argument gives the name of the source file.' |
|
600 | 601 | ) |
|
601 | 602 | @magic_arguments.argument( |
|
602 | 'filename', type=unicode, | |
|
603 | 'filename', type=unicode_type, | |
|
603 | 604 | help='Notebook name or filename' |
|
604 | 605 | ) |
|
605 | 606 | @line_magic |
@@ -36,6 +36,7 b' from IPython.testing.skipdoctest import skip_doctest' | |||
|
36 | 36 | from IPython.utils.openpy import source_to_unicode |
|
37 | 37 | from IPython.utils.path import unquote_filename |
|
38 | 38 | from IPython.utils.process import abbrev_cwd |
|
39 | from IPython.utils.py3compat import unicode_type | |
|
39 | 40 | from IPython.utils.terminal import set_term_title |
|
40 | 41 | |
|
41 | 42 | #----------------------------------------------------------------------------- |
@@ -714,7 +715,7 b' class OSMagics(Magics):' | |||
|
714 | 715 | 'The file will be created if it does not exist.' |
|
715 | 716 | ) |
|
716 | 717 | @magic_arguments.argument( |
|
717 | 'filename', type=unicode, | |
|
718 | 'filename', type=unicode_type, | |
|
718 | 719 | help='file to write' |
|
719 | 720 | ) |
|
720 | 721 | @cell_magic |
General Comments 0
You need to be logged in to leave comments.
Login now