diff Lib/idlelib/PyShell.py @ 42881:4c78c048c3ba

os.getcwd() now returns a normal string (ie, unicode)
author Neal Norwitz <nnorwitz@gmail.com>
date Sun, 26 Aug 2007 23:37:53 +0000
parents 06de62f33c37
children fec2c0299a8c
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py	Sun Aug 26 23:30:31 2007 +0000
+++ b/Lib/idlelib/PyShell.py	Sun Aug 26 23:37:53 2007 +0000
@@ -1365,11 +1365,8 @@
             if not dir in sys.path:
                 sys.path.insert(0, dir)
     else:
-        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:
+        dir = os.getcwd()
+        if dir not in sys.path:
             sys.path.insert(0, dir)
     # check the IDLE settings configuration (but command line overrides)
     edit_start = idleConf.GetOption('main', 'General',