You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@subversion.apache.org by "Daniel Shahaf (Jira)" <ji...@apache.org> on 2022/05/14 13:00:00 UTC

[jira] [Commented] (SVN-4899) Replace deprecated ConfigParser readfp with read_file

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

Daniel Shahaf commented on SVN-4899:
------------------------------------

Committed the GeneratorBase part in r1900882 and nominated it for backport to 1.14.x.  The other part is for platforms I don't have access to so I'll leave it to others.  Thanks, Hugo.

> 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
>            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)