sphinx-contrib / emojicodes

An extension to use emoji codes in your Sphinx documentation! 😍
https://sphinxemojicodes.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
48 stars 15 forks source link

Ensure codes.json is closed after reading. #30

Closed domdfcoding closed 3 years ago

domdfcoding commented 3 years ago

The current approach leaves the file handle open, which is not recommended. Instead, the context manager will close the file after the JSON content has been read.

Peque commented 3 years ago

@domdfcoding Thanks! :blush: