Show More
@@ -64,13 +64,8 b' def start_console():' | |||
|
64 | 64 | "Start `ipython console` using pexpect" |
|
65 | 65 | from IPython.external import pexpect |
|
66 | 66 | |
|
67 | args = ['console', '--colors=NoColor'] | |
|
68 | # FIXME: remove workaround for 2.6 support | |
|
69 | if sys.version_info[:2] > (2,6): | |
|
70 | args = ['-m', 'IPython'] + args | |
|
71 | cmd = sys.executable | |
|
72 | else: | |
|
73 | cmd = 'ipython' | |
|
67 | args = ['-m', 'IPython', 'console', '--colors=NoColor'] | |
|
68 | cmd = sys.executable | |
|
74 | 69 | |
|
75 | 70 | try: |
|
76 | 71 | p = pexpect.spawn(cmd, args=args) |
@@ -187,10 +187,7 b' else:' | |||
|
187 | 187 | if sys.platform == 'win32': |
|
188 | 188 | def execfile(fname, glob=None, loc=None): |
|
189 | 189 | loc = loc if (loc is not None) else glob |
|
190 | # The rstrip() is necessary b/c trailing whitespace in files will | |
|
191 | # cause an IndentationError in Python 2.6 (this was fixed in 2.7, | |
|
192 | # but we still support 2.6). See issue 1027. | |
|
193 | scripttext = builtin_mod.open(fname).read().rstrip() + '\n' | |
|
190 | scripttext = builtin_mod.open(fname).read()+ '\n' | |
|
194 | 191 | # compile converts unicode filename to str assuming |
|
195 | 192 | # ascii. Let's do the conversion before calling compile |
|
196 | 193 | if isinstance(fname, unicode): |
General Comments 0
You need to be logged in to leave comments.
Login now