Hugo created SVN-4899:
-------------------------

             Summary: Replace deprecated ConfigParser readfp with read_file
                 Key: SVN-4899
                 URL: https://issues.apache.org/jira/browse/SVN-4899
             Project: Subversion
          Issue Type: Bug
    Affects Versions: 1.14.2
            Reporter: Hugo
         Attachments: configparser.patch

ConfigParser's `readfp()` has been deprecated since Python 3.2 and will be 
removed in Python 3.12 (due October 2023).

 
 * 
[https://docs.python.org/3/library/configparser.html#configparser.ConfigParser.readfp]
 * 
[https://github.com/python/cpython/blob/dd0e8a62df8be2a09ef6035b4c92bd9a68a7b918/Lib/configparser.py#L757-L764]

 

It is used three times in Subversion.

 

The fix is to replace it with `read_file()` instead.

 

Untested patch attached.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to