magic-wormhole / magic-wormhole-mailbox-server

the rendezvous/mailbox server for magic-wormhole clients
MIT License
159 stars 34 forks source link

setup.py: remove the 'U' open mode removed in Python 3.11 #34

Closed jolivain closed 1 year ago

jolivain commented 1 year ago

The 'U' open mode was removed in Python 3.11. See: https://docs.python.org/3.11/library/functions.html#open

Installing with Python 3.11 fails with:

/path/to/python-magic-wormhole-mailbox-server-0.4.1/setup.py", line 20, in <module>
    long_description=open('README.md', 'rU').read(),
                     ^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid mode: 'rU'

This patch removes the 'U' open mode.

Signed-off-by: Julien Olivain ju.o@free.fr

codecov[bot] commented 1 year ago

Codecov Report

Base: 97.10% // Head: 97.10% // No change to project coverage :thumbsup:

Coverage data is based on head (df6126e) compared to base (ac91c3a). Patch has no changes to coverable lines.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #34 +/- ## ======================================= Coverage 97.10% 97.10% ======================================= Files 8 8 Lines 829 829 Branches 154 154 ======================================= Hits 805 805 Misses 16 16 Partials 8 8 ``` Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=magic-wormhole). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=magic-wormhole)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

meejah commented 1 year ago

thanks!