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 from setuptools import setup, find_packages
try: with open('README.rst') as readme_file:
README = open('README.rst').read() README = readme_file.read()
except:
README = None
setup( setup(
author='Brandon Taylor', author='Brandon Taylor',