os.getcwd() now returns a normal string (ie, unicode)
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 26 Aug 2007 23:37:53 +0000 (23:37 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 26 Aug 2007 23:37:53 +0000 (23:37 +0000)
Lib/idlelib/PyShell.py

index 21cdbc57d76e0f8a2028ec38fce2a1e7bb625d20..6ec625178de03bb1b216fbb5b228593fded9aa2e 100644 (file)
@@ -1365,11 +1365,8 @@ def main():
             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',