fix: remove redundant .close()
On py313, pathlib.Path.glob() now returns a `map` object,which cannot be .close() File "/usr/lib/python3.13/site-packages/ncmlyrics/util.py", line 122, in testExistTrackSource globing.close() ^^^^^^^^^^^^^ AttributeError: 'map' object has no attribute 'close'
This commit is contained in:
parent
5dbcd49bf0
commit
0c4a81c9d3
@ -118,8 +118,6 @@ def testExistTrackSource(track: NCMTrack, path: Path) -> Path | None:
|
|||||||
return next(globing)
|
return next(globing)
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
return None
|
return None
|
||||||
finally:
|
|
||||||
globing.close()
|
|
||||||
|
|
||||||
|
|
||||||
def pickOutput(track: NCMTrack, outputs: list[Path], forceSourceExists: bool = False) -> Path | None:
|
def pickOutput(track: NCMTrack, outputs: list[Path], forceSourceExists: bool = False) -> Path | None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user