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

Guido van Rossum guido at python.org
Thu Aug 23 16:04:56 CEST 2007


We should fix that obviously.

On 8/22/07, kurt.kaiser <python-3000-checkins at python.org> 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
> Python-3000-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-3000-checkins
>


-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000-checkins mailing list