Skip to content

Commit

Permalink
Replace configparser.readfp with readfile for Python 3.12 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
fredvd committed Apr 14, 2024
1 parent bc57d84 commit 5a7a632
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/155.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Replace configparser.readfp with readfile for Python 3.12 compatibility [@fredvd]
2 changes: 1 addition & 1 deletion src/collective/taxonomy/exportimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def parseConfigFile(data):
except Exception as exception:
raise exception

config.readfp(StringIO(data.decode("utf-8")))
config.read_file(StringIO(data.decode("utf-8")))
return config


Expand Down

0 comments on commit 5a7a632

Please sign in to comment.