mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-04-10 06:09:09 +08:00
Merge pull request #4529 from cddjr/add_ctx_mgr_proto
This commit is contained in:
@@ -80,6 +80,12 @@ class AutoCloseResponse:
|
||||
for name, value in state.items():
|
||||
setattr(self, name, value)
|
||||
|
||||
def __enter__(self):
|
||||
return self
|
||||
|
||||
def __exit__(self, *args):
|
||||
self.close()
|
||||
|
||||
class RequestUtils:
|
||||
|
||||
def __init__(self,
|
||||
|
||||
Reference in New Issue
Block a user