[ 
https://issues.apache.org/jira/browse/SVN-4899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17537432#comment-17537432
 ] 

Hugo van Kemenade commented on SVN-4899:
----------------------------------------

Thank you Daniel!

A note for those updating `build/win32/make_dist.py`, you'll also need 
something like r1900890 to maintain support for Python 2.7.

[https://svn.apache.org/viewvc?view=revision&revision=1900890]

 

> 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 van Kemenade
>            Priority: Major
>              Labels: deprecation
>         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