Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bad46b8

Browse files
committed
Merge pull request #27 from svisser/patch-1
Ensure file handle is closed using with statement
2 parents 2042f06 + 3570600 commit bad46b8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@
1515
m = re.search("__version__ = '(\d+\.\d+\.\d+)'", source, re.M)
1616
__version__ = m.groups()[0]
1717

18+
with open('README.rst') as readme:
19+
long_description = readme.read()
20+
1821
setup(
1922
name="python-intercom",
2023
version=__version__,
2124
description="Intercom API wrapper",
22-
long_description=open('README.rst').read(),
25+
long_description=long_description,
2326
author="John Keyes",
2427
author_email="[email protected]",
2528
license="MIT License",

0 commit comments

Comments
 (0)