Skip to content

Commit f413432

Browse files
committed
Use open instead of file (thanks @flc)
file is more suitable to type testing (https://docs.python.org/2/library/functions.html#file)
1 parent 71bf762 commit f413432

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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', '__init__.py')) as init:
13+
with open(os.path.join('intercom', '__init__.py')) as init:
1414
source = init.read()
1515
m = re.search("__version__ = '(\d+\.\d+\.(\d+|[a-z]+))'", source, re.M)
1616
__version__ = m.groups()[0]

0 commit comments

Comments
 (0)