Pylons / pastedeploy

provides code to load WSGI applications and servers from URIs
MIT License
23 stars 14 forks source link

Fix ConfigParser read_file compatibilty #32

Closed hugovk closed 2 years ago

hugovk commented 2 years ago

The existing compatibility code didn't actually work, for example see https://bugzilla.redhat.com/show_bug.cgi?id=2019873 which was run against an early alpha of 3.11.

The removal was postponed from 3.11, and instead will be removed in 3.12.

https://github.com/python/cpython/pull/92503

You can simulate the removal by finding your Python 3's configparser.py and deleting readfp.

mmerickel commented 2 years ago

Thank you for opening this. I have merged a different version of this change into master as I work on a future release of the library. I don't plan to make a 2.x series release with just this one fix as it isn't even a problem on a currently-released version of Python.