[Python-3000-checkins] r57313 - python/branches/py3k/Lib/idlelib/PyShell.py

kurt.kaiser python-3000-checkins at python.org
Thu Aug 23 08:17:41 CEST 2007


Author: kurt.kaiser
Date: Thu Aug 23 08:17:40 2007
New Revision: 57313

Modified:
   python/branches/py3k/Lib/idlelib/PyShell.py
Log:
os.getcwd() is returning str8; sys.path items are str.


Modified: python/branches/py3k/Lib/idlelib/PyShell.py
==============================================================================
--- python/branches/py3k/Lib/idlelib/PyShell.py	(original)
+++ python/branches/py3k/Lib/idlelib/PyShell.py	Thu Aug 23 08:17:40 2007
@@ -1365,7 +1365,10 @@
             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)


More information about the Python-3000-checkins mailing list