Show More
@@ -74,7 +74,11 b' def safe_unicode(e):' | |||||
74 | if sys.version_info[0] >= 3: |
|
74 | if sys.version_info[0] >= 3: | |
75 | PY3 = True |
|
75 | PY3 = True | |
76 |
|
76 | |||
77 | input = input |
|
77 | # keep reference to builtin_mod because the kernel overrides that value | |
|
78 | # to forward requests to a frontend. | |||
|
79 | def input(prompt=''): | |||
|
80 | return builtin_mod.input(prompt) | |||
|
81 | ||||
78 | builtin_mod_name = "builtins" |
|
82 | builtin_mod_name = "builtins" | |
79 | import builtins as builtin_mod |
|
83 | import builtins as builtin_mod | |
80 |
|
84 | |||
@@ -131,7 +135,11 b' if sys.version_info[0] >= 3:' | |||||
131 | else: |
|
135 | else: | |
132 | PY3 = False |
|
136 | PY3 = False | |
133 |
|
137 | |||
134 | input = raw_input |
|
138 | # keep reference to builtin_mod because the kernel overrides that value | |
|
139 | # to forward requests to a frontend. | |||
|
140 | def input(prompt=''): | |||
|
141 | return builtin_mod.raw_input(prompt) | |||
|
142 | ||||
135 | builtin_mod_name = "__builtin__" |
|
143 | builtin_mod_name = "__builtin__" | |
136 | import __builtin__ as builtin_mod |
|
144 | import __builtin__ as builtin_mod | |
137 |
|
145 |
General Comments 0
You need to be logged in to leave comments.
Login now