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:
Puqns67 2024-10-20 01:48:37 +08:00
parent 5dbcd49bf0
commit 0c4a81c9d3
Signed by: Puqns67
GPG Key ID: 9669DF042554F536

View File

@ -118,8 +118,6 @@ def testExistTrackSource(track: NCMTrack, path: Path) -> Path | None:
return next(globing)
except StopIteration:
return None
finally:
globing.close()
def pickOutput(track: NCMTrack, outputs: list[Path], forceSourceExists: bool = False) -> Path | None: