Use a context manager to read README.rst
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user