mirror of
https://github.com/dgelessus/python-rsrcfork.git
synced 2026-04-22 00:17:07 +00:00
Fix ResourceFile.__enter__ not returning anything
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user