Skip to content

Commit

Permalink
Merge pull request SheffieldML#761 from GeoffDNeal/patch-1
Browse files Browse the repository at this point in the history
Fix clean install of Python 2.7
  • Loading branch information
mzwiessele authored Jul 22, 2019
2 parents 1eaab2f + 9cf4b0f commit c8255bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
from setuptools import setup, Extension
import codecs

try:
ModuleNotFoundError
except NameError:
ModuleNotFoundError = ImportError

def read(fname):
with codecs.open(fname, 'r', 'latin') as f:
return f.read()
Expand Down

0 comments on commit c8255bd

Please sign in to comment.