mirror of
https://github.com/dgelessus/python-rsrcfork.git
synced 2025-02-09 02:31:09 +00:00
Fix ResourceFile.__enter__ not returning anything
This commit is contained in:
parent
fdd04c944b
commit
add22b704a
@ -189,6 +189,7 @@ Version 1.3.1 (next version)
|
||||
* The ``'dcmp'`` ID used to decompress each resource is displayed.
|
||||
|
||||
* Fixed an incorrect ``options.packages`` in ``setup.cfg``, which made the library unusable except when installing from source using ``--editable``.
|
||||
* Fixed ``ResourceFile.__enter__`` returning ``None``, which made it impossible to use ``ResourceFile`` properly in a ``with`` statement.
|
||||
|
||||
Version 1.3.0.post1
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -455,7 +455,7 @@ class ResourceFile(collections.abc.Mapping):
|
||||
self._stream.close()
|
||||
|
||||
def __enter__(self):
|
||||
pass
|
||||
return self
|
||||
|
||||
def __exit__(self, exc_type, exc_val, exc_tb):
|
||||
self.close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user