[Python-bugs-list] [ python-Bugs-808719 ] IDLE and encodings

SourceForge.net noreply at sourceforge.net
Thu Sep 18 13:08:35 EDT 2003


Bugs item #808719, was opened at 2003-09-18 12:08
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=808719&group_id=5470

Category: IDLE
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthew Cowles (mdcowles)
Assigned to: Nobody/Anonymous (nobody)
Summary: IDLE and encodings

Initial Comment:
A person from Belgium reported this problem in IDLE to 

python-help:



$ python  idle

Traceback (most recent call last):

  File "idle", line 10, in ?

    import PyShell

  File "PyShell.py", line 25, in ?

    from EditorWindow import EditorWindow, fixwordbreaks

  File "EditorWindow.py", line 39, in ?

    class EditorWindow:

  File "EditorWindow.py", line 43, in EditorWindow

    from IOBinding import IOBinding

  File "IOBinding.py", line 54, in ?

    codecs.lookup(encoding)

  File

"/ap/tools/storage/python/v2.2.2.224_ap/lib/python2.2/

encodings/__init__.py",



line 51, in search_function

    mod = __import__(modname,globals(),locals(),'*')

ValueError: Empty module name



It seems that checking for an encoding of "" as well as None 

in IOBinding.py fixes the problem. I'll attach his small patch.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=808719&group_id=5470



More information about the Python-bugs-list mailing list