Use a context manager to read README.rst

This commit is contained in:
blag
2020-07-22 01:54:14 -07:00
parent 3209998569
commit eb3f18b09e
+2 -4
View File
@@ -1,9 +1,7 @@
from setuptools import setup, find_packages
try:
README = open('README.rst').read()
except:
README = None
with open('README.rst') as readme_file:
README = readme_file.read()
setup(
author='Brandon Taylor',