Georg Brandl added the comment:
It seems that nobody updated the documentation to say that configparser
operates on text files. The example is also wrong, it should open the
file in 'w' mode, not 'wb'.
Fixed in r75016.
PS: please use more expressive titles for issues in the future.
-
New submission from Kandalintsev Alexandre :
Hello! Seems configparser is broken in recent versions of py3k. Please also
check older
versions of python.
$ python3 ./cfgexample.py
Traceback (most recent call last):
File "./cfgexample.py", line 9, in
config.write(configfile)
File "/usr