summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2007-08-23 06:17:40 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2007-08-23 06:17:40 (GMT)
commit9a3b014f31cc661fa25ea61f8713f3f5cfb3fe36 (patch)
tree78a41c97286c6ca5de4520dfa8c8e90575fbfcbb /Lib
parente07127793958bc355dd34b79c08397c698c298d7 (diff)
downloadcpython-9a3b014f31cc661fa25ea61f8713f3f5cfb3fe36.zip
cpython-9a3b014f31cc661fa25ea61f8713f3f5cfb3fe36.tar.gz
cpython-9a3b014f31cc661fa25ea61f8713f3f5cfb3fe36.tar.bz2
os.getcwd() is returning str8; sys.path items are str.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/PyShell.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index a9b8f72..21cdbc5 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -1365,7 +1365,10 @@ def main():
if not dir in sys.path:
sys.path.insert(0, dir)
else:
- dir = os.getcwd()
+ dir = str(os.getcwd()) ### os.getcwd() returning str8 but sys.path
+ ### items are type 'str'. Remove the cast
+ ### when fixed and assertion fails
+ assert isinstance(os.getcwd(), str8) ###
if not dir in sys.path:
sys.path.insert(0, dir)
# check the IDLE settings configuration (but command line overrides)