diff --git a/docs/conf.py b/docs/conf.py index 6aa26539..a9034bc8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -54,7 +54,7 @@ # The short X.Y version. import re -with file(os.path.join(path_dir, 'intercom', 'intercom.py')) as init: +with open(os.path.join(path_dir, 'intercom', 'intercom.py')) as init: source = init.read() m = re.search("__version__ = '(\d+\.\d+\.\d+)'", source, re.M) version = m.groups()[0] diff --git a/setup.py b/setup.py index 1c13d66f..48e77e50 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ from setuptools import find_packages from setuptools import setup -with file(os.path.join('intercom', 'intercom.py')) as init: +with open(os.path.join('intercom', 'intercom.py')) as init: source = init.read() m = re.search("__version__ = '(\d+\.\d+\.\d+)'", source, re.M) __version__ = m.groups()[0]