Skip to content

Commit 0f3195e

Browse files
committed
MSS: fix a ResourceWarning: unclosed file in setup.py
1 parent 235be2a commit 0f3195e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ History:
44

55
3.3.0 2018/08/xx
66
- Linux: add an error handler for the XServer to prevent interpreter crash (fix #61)
7+
- MSS: fix a ResourceWarning: unclosed file in setup.py
78
- tests: fix a ResourceWarning: unclosed file
89
- big code clean-up using black
910

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
"Programming Language :: Python :: 3.7",
4040
"Topic :: Multimedia :: Graphics :: Capture :: Screen Capture",
4141
]
42+
43+
with open("README.rst") as f:
44+
description = f.read()
45+
4246
config = {
4347
"name": "mss",
4448
"version": __version__,
@@ -51,7 +55,7 @@
5155
"An ultra fast cross-platform multiple screenshots module "
5256
"in pure python using ctypes."
5357
),
54-
"long_description": open("README.rst").read(),
58+
"long_description": description,
5559
"classifiers": classifiers,
5660
"platforms": ["Darwin", "Linux", "Windows"],
5761
"packages": ["mss"],

0 commit comments

Comments
 (0)