New submission from Wolfgang Rohdewald:
The attached script works with Python2.7. With Python3.4, it produces
Traceback (most recent call last):
File /usr/lib/python3.4/cgitb.py, line 268, in __call__
self.handle((etype, evalue, etb))
File cgibug.py, line 12, in handle
Amaury Forgeot d'Arc added the comment:
html is text, so the file mode should be 'w'.
But I don't reproduce the behavior with Python version v3.4.2.
Which version are you using exactly?
--
nosy: +amaury.forgeotdarc
___
Python tracker
R. David Murray added the comment:
I don't think what html is is relevant here. Hook is going to be dealing with
strings, though, so 'w' is indeed correct.
The script works fine for me as well. (Also tested it on 3.3.2 since I had it
laying around, so it's not a recent bugfix).
--
Wolfgang Rohdewald added the comment:
This now works with mode 'w' and after reinstalling the packages. My Python is
3.4.0 (ubuntu).
--
resolution: - not a bug
status: open - closed
___
Python tracker rep...@bugs.python.org