We should fix that obviously. On 8/22/07, kurt.kaiser <[email protected]> wrote: > 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) > _______________________________________________ > Python-3000-checkins mailing list > [email protected] > http://mail.python.org/mailman/listinfo/python-3000-checkins >
-- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-3000-checkins mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000-checkins
