mirror of
https://github.com/zoriya/guessit.git
synced 2026-06-02 18:40:43 +00:00
style: fix pylint false positive
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ if sys.version_info >= (3, 9, 0):
|
||||
"""
|
||||
Should behave like deprecated importlib.resources.read_text()
|
||||
"""
|
||||
return files(package).joinpath(filename).read_text()
|
||||
return files(package).joinpath(filename).read_text() # pylint:disable=unspecified-encoding
|
||||
else:
|
||||
try:
|
||||
from importlib.resources import read_text
|
||||
|
||||
Reference in New Issue
Block a user