Diaoul / babelfish

BabelFish is a Python library to work with countries and languages
BSD 3-Clause "New" or "Revised" License
25 stars 14 forks source link

Fix resource_stream and with statement #2

Closed Diaoul closed 10 years ago

Diaoul commented 10 years ago

Because resource_stream may return a StringIO that does not support the with statement we need to use close explicitly.

Seems like: http://ridingpython.blogspot.fr/2011/08/stream-from-pkgresourcesresourcestream.html

Diaoul commented 10 years ago

Fixed with 32a6b50c4855f8800cbea3ab3af28bdfeda58c08