Skip to content

Commit b491627

Browse files
committed
Merge pull request #96 from svisser/patch-1
Ensure file handle is closed using with statement
2 parents 889c631 + fc7c75e commit b491627

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
@@ -1,12 +1,15 @@
11
from setuptools import setup
22

3+
with open('README.md') as readme_file:
4+
long_description = readme_file.read()
5+
36
setup(
47
name='jsonobject',
58
version='0.5.0',
69
author='Danny Roberts',
710
author_email='[email protected]',
811
description='A library for dealing with JSON as python objects',
9-
long_description=open('README.md').read(),
12+
long_description=long_description,
1013
url='https://github.com/dannyroberts/jsonobject',
1114
packages=['jsonobject'],
1215
install_requires=[],

0 commit comments

Comments
 (0)