Show More
@@ -7,7 +7,7 b' from warnings import warn' | |||
|
7 | 7 | |
|
8 | 8 | from IPython.core.interactiveshell import InteractiveShell, InteractiveShellABC |
|
9 | 9 | from IPython.utils import io |
|
10 |
from IPython.utils.py3compat import |
|
|
10 | from IPython.utils.py3compat import cast_unicode_py2, input | |
|
11 | 11 | from IPython.utils.terminal import toggle_set_term_title, set_term_title |
|
12 | 12 | from IPython.utils.process import abbrev_cwd |
|
13 | 13 | from traitlets import Bool, Unicode, Dict, Integer, observe, Instance, Type, default, Enum, Union |
@@ -59,10 +59,7 b' _style_overrides_linux = {' | |||
|
59 | 59 | |
|
60 | 60 | def get_default_editor(): |
|
61 | 61 | try: |
|
62 |
|
|
|
63 | if not PY3: | |
|
64 | ed = ed.decode() | |
|
65 | return ed | |
|
62 | return os.environ['EDITOR'] | |
|
66 | 63 | except KeyError: |
|
67 | 64 | pass |
|
68 | 65 | except UnicodeError: |
General Comments 0
You need to be logged in to leave comments.
Login now