From 439c90deba77fb0f4d9ae420afedf982376a8e55 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Mon, 22 Sep 2014 15:41:06 +0200 Subject: [PATCH] Use open() instead of file() --- docs/conf.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]