From eb3f18b09e29d0512b29a5124ed1745acc944c0f Mon Sep 17 00:00:00 2001 From: blag Date: Wed, 22 Jul 2020 01:54:14 -0700 Subject: [PATCH] Use a context manager to read README.rst --- setup.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index ec27483..99eabc9 100644 --- a/setup.py +++ b/setup.py @@ -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',