[New-bugs-announce] [issue12865] import SimpleHTTPServer

Andrey Men report at bugs.python.org
Wed Aug 31 00:35:13 CEST 2011


New submission from Andrey Men <menangen at gmail.com>:

In russian windows seven SP1, x32, installed from 2.7.1/2.7.2 MSI installer:

>>> import SimpleHTTPServer

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import SimpleHTTPServer
  File "C:\Python\lib\SimpleHTTPServer.py", line 27, in <module>
    class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
  File "C:\Python\lib\SimpleHTTPServer.py", line 204, in SimpleHTTPRequestHandler
    mimetypes.init() # try to read system mime.types
  File "C:\Python\lib\mimetypes.py", line 355, in init
    db.read_windows_registry()
  File "C:\Python\lib\mimetypes.py", line 259, in read_windows_registry
    for ctype in enum_types(mimedb):
  File "C:\Python\lib\mimetypes.py", line 249, in enum_types
    ctype = ctype.encode(default_encoding) # omit in 3.x!
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

----------
messages: 143238
nosy: Andrey.Men
priority: normal
severity: normal
status: open
title: import SimpleHTTPServer
type: resource usage
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12865>
_______________________________________


More information about the New-bugs-announce mailing list