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
No known key found for this signature in database
GPG key ID: 30870D32F59C5F40

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',