Menu

#363 docutils uses deprecate "rU" mode in its FileInput class

closed-duplicate
None
5
2020-03-03
2019-06-20
No

The "U" file mode of open() is deprecated in Python 3 for 10 years. I'm working on https://bugs.python.org/issue37330 to remove it from next Python 3.9. Problem: building the Python documentation fails with my change because of the FileInput class of docutils, used by Sphinx.

Attached patch fix the issue for me.

Once this change will be merged, would it be possible to get a new release? The last one was in 2017.

1 Attachments

Related

Bugs: #363

Discussion

  • engelbert gruber

     
  • engelbert gruber

    i take the patch

    and try to get consesn on releasing

     
  • engelbert gruber

    patch is already there . repository contains:

    def __init__(self, source=None, source_path=None,
                 encoding=None, error_handler='strict',
                 autoclose=True,
                 mode='r' if sys.version_info >= (3, 4) else 'rU', **kwargs):
    
     
  • engelbert gruber

    • status: open --> closed-duplicate
    • assigned_to: engelbert gruber
     
  • STINNER Victor

    STINNER Victor - 2019-06-21

    patch is already there . repository contains: (...)

    Oh, that's even better! So the remaining part would be to get a release ;-)

     

Log in to post a comment.

MongoDB Logo MongoDB