Adds support for Python's with statements
This commit is contained in:
parent
ca8a73046b
commit
78107a9ce6
1 changed files with 6 additions and 0 deletions
|
|
@ -127,3 +127,9 @@ class YTMusic(BrowsingMixin, WatchMixin, LibraryMixin, PlaylistsMixin, UploadsMi
|
|||
:return: configuration headers string
|
||||
"""
|
||||
return setup(filepath, headers_raw)
|
||||
|
||||
def __enter__(self):
|
||||
return self
|
||||
|
||||
def __exit__(self, execType = None, execValue = None, trackback = None):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Reference in a new issue