1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-18 03:00:42 -04:00
ports/devel/py-constantly/files/patch-versioneer.py
Dmitry Marakasov cbc49d7bde devel/py-constantly: fix build with python 3.11
Approved by:	portmgr blanket
2021-12-13 14:45:54 +03:00

14 lines
586 B
Python

--- versioneer.py.orig 2015-08-11 08:30:05 UTC
+++ versioneer.py
@@ -396,9 +396,9 @@ def get_config_from_root(root):
# configparser.NoOptionError (if it lacks "VCS="). See the docstring at
# the top of versioneer.py for instructions on writing your setup.cfg .
setup_cfg = os.path.join(root, "setup.cfg")
- parser = configparser.SafeConfigParser()
+ parser = configparser.ConfigParser()
with open(setup_cfg, "r") as f:
- parser.readfp(f)
+ parser.read_file(f)
VCS = parser.get("versioneer", "VCS") # mandatory
def get(parser, name):