Skip to content

Commit

Permalink
Merge pull request #16 from svisser/patch-1
Browse files Browse the repository at this point in the history
Ensure file handles are closed in setup.py
  • Loading branch information
kmike committed Aug 23, 2014
2 parents 2dc5962 + 521ef98 commit 5671c27
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@
HATTRIE_FILE_NAMES = ['ahtable.c', 'hat-trie.c', 'misc.c', 'murmurhash3.c']
HATTRIE_FILES = [os.path.join(HATTRIE_DIR, name) for name in HATTRIE_FILE_NAMES]

with open('README.rst') as file_readme:
readme = file_readme.read()

with open('CHANGES.rst') as file_changes:
changes = file_changes.read()

setup(
name="hat-trie",
version="0.2",
description="HAT-Trie for Python",
long_description = open('README.rst').read() + "\n\n" + open('CHANGES.rst').read(),
long_description = readme + "\n\n" + changes,
author='Mikhail Korobov',
author_email='[email protected]',
url='https://github.com/kmike/hat-trie/',
Expand Down

0 comments on commit 5671c27

Please sign in to comment.