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