pytries / marisa-trie

Static memory-efficient Trie-like structures for Python based on marisa-trie C++ library.
https://marisa-trie.readthedocs.io/en/latest/
MIT License
1.04k stars 92 forks source link

Fix ResourceWarning: unclosed file in setup.py #58

Closed BoboTiG closed 3 years ago

BoboTiG commented 4 years ago
setup.py:26: ResourceWarning: unclosed file <_io.TextIOWrapper name='README.rst' mode='r' encoding='UTF-8'>
  LONG_DESCRIPTION = open("README.rst").read() + open("CHANGES.rst").read()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
setup.py:26: ResourceWarning: unclosed file <_io.TextIOWrapper name='CHANGES.rst' mode='r' encoding='UTF-8'>
  LONG_DESCRIPTION = open("README.rst").read() + open("CHANGES.rst").read()
ResourceWarning: Enable tracemalloc to get the object allocation traceback