py2 compatibility

pull/18/head
JamesRamm 2017-02-07 09:23:23 +00:00
rodzic aa4fa84a3e
commit 7cae5a859d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -44,7 +44,7 @@ if sys.argv[-1] == 'tag':
try:
readme = open('README.rst').read()
history = open('CHANGELOG.rst').read().replace('.. :changelog:', '')
except FileNotFoundError:
except IOError:
# Protects against running python from a different dir to setup.py,
# e.g. on travis
readme = ''