Make setup.py Python2 compatible
@@ -62,12 +62,8 @@ EXTRAS["examples"] = sorted(
here = os.path.abspath(os.path.dirname(__file__))
# Import the README and use it as the long-description.
-# Note: this will only work if 'README.md' is present in your MANIFEST.in file!
-try:
- with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
+with open(os.path.join(here, 'README.md')) as f:
long_description = '\n' + f.read()
-except FileNotFoundError:
- long_description = DESCRIPTION
# Load the package's __version__.py module as a dictionary.
about = {}
