Use a context manager to read README.rst

master
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
1 changed files with 2 additions and 4 deletions

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