Bump pylint from 3.0.3 to 3.1.0 (#6287)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
dependabot[bot]
2024-04-16 10:59:44 +12:00
committed by GitHub
parent 27b286b57f
commit 01419822f7
4 changed files with 13 additions and 7 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ def _load_tzdata(iana_key: str) -> Optional[bytes]:
package = "tzdata.zoneinfo." + package_loc.replace("/", ".")
try:
return resources.read_binary(package, resource)
return (resources.files(package) / resource).read_bytes()
except (FileNotFoundError, ModuleNotFoundError):
return None