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