Show More
@@ -27,7 +27,7 b' from pprint import pformat' | |||
|
27 | 27 | from IPython.core import ultratb |
|
28 | 28 | from IPython.core.release import author_email |
|
29 | 29 | from IPython.utils.sysinfo import sys_info |
|
30 |
from IPython.utils.py3compat import input |
|
|
30 | from IPython.utils.py3compat import input | |
|
31 | 31 | |
|
32 | 32 | #----------------------------------------------------------------------------- |
|
33 | 33 | # Code |
@@ -139,9 +139,9 b' class CrashHandler(object):' | |||
|
139 | 139 | try: |
|
140 | 140 | rptdir = self.app.ipython_dir |
|
141 | 141 | except: |
|
142 | rptdir = getcwd() | |
|
142 | rptdir = os.getcwd() | |
|
143 | 143 | if rptdir is None or not os.path.isdir(rptdir): |
|
144 | rptdir = getcwd() | |
|
144 | rptdir = os.getcwd() | |
|
145 | 145 | report_name = os.path.join(rptdir,self.crash_report_fname) |
|
146 | 146 | # write the report filename into the instance dict so it can get |
|
147 | 147 | # properly expanded out in the user message template |
@@ -45,7 +45,7 b' from nose.plugins import doctests, Plugin' | |||
|
45 | 45 | from nose.util import anyp, tolist |
|
46 | 46 | |
|
47 | 47 | # Our own imports |
|
48 |
from IPython.utils.py3compat import builtin_mod, PY3 |
|
|
48 | from IPython.utils.py3compat import builtin_mod, PY3 | |
|
49 | 49 | |
|
50 | 50 | if PY3: |
|
51 | 51 | from io import StringIO |
@@ -259,7 +259,7 b' class DocTestCase(doctests.DocTestCase):' | |||
|
259 | 259 | # Save our current directory and switch out to the one where the |
|
260 | 260 | # test was originally created, in case another doctest did a |
|
261 | 261 | # directory change. We'll restore this in the finally clause. |
|
262 | curdir = getcwd() | |
|
262 | curdir = os.getcwd() | |
|
263 | 263 | #print 'runTest in dir:', self._ori_dir # dbg |
|
264 | 264 | os.chdir(self._ori_dir) |
|
265 | 265 |
General Comments 0
You need to be logged in to leave comments.
Login now