Index: Doc/library/configparser.rst =================================================================== --- Doc/library/configparser.rst (révision 75353) +++ Doc/library/configparser.rst (copie de travail) @@ -410,7 +410,7 @@ config.set('Section1', 'foo', '%(bar)s is %(baz)s!') # Writing our configuration file to 'example.cfg' - with open('example.cfg', 'wb') as configfile: + with open('example.cfg', 'w') as configfile: config.write(configfile) An example of reading the configuration file again::