1
0
mirror of https://github.com/arsenetar/send2trash.git synced 2026-01-31 10:51:38 +00:00

Fix ResourceWarning: unclosed file in setup.py

Also prevent potential identical warning in `plat_other.py`.
This commit is contained in:
Mickaël Schoentgen
2020-12-01 08:43:12 +01:00
parent 49bc438546
commit cd8d9fb95e
2 changed files with 4 additions and 6 deletions

View File

@@ -17,9 +17,8 @@ CLASSIFIERS = [
"Topic :: Desktop Environment :: File Managers",
]
LONG_DESCRIPTION = (
open("README.rst", "rt").read() + "\n\n" + open("CHANGES.rst", "rt").read()
)
with open("README.rst", "rt") as f1, open("CHANGES.rst", "rt") as f2:
LONG_DESCRIPTION = f1.read() + "\n\n" + f2.read()
setup(
name="Send2Trash",