Skip to content

Commit 439c90d

Browse files
committed
Use open() instead of file()
1 parent ee6af5f commit 439c90d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
# The short X.Y version.
5555

5656
import re
57-
with file(os.path.join(path_dir, 'intercom', 'intercom.py')) as init:
57+
with open(os.path.join(path_dir, 'intercom', 'intercom.py')) as init:
5858
source = init.read()
5959
m = re.search("__version__ = '(\d+\.\d+\.\d+)'", source, re.M)
6060
version = m.groups()[0]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from setuptools import find_packages
1111
from setuptools import setup
1212

13-
with file(os.path.join('intercom', 'intercom.py')) as init:
13+
with open(os.path.join('intercom', 'intercom.py')) as init:
1414
source = init.read()
1515
m = re.search("__version__ = '(\d+\.\d+\.\d+)'", source, re.M)
1616
__version__ = m.groups()[0]

0 commit comments

Comments
 (0)