We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa165bc commit 1dcee41Copy full SHA for 1dcee41
Lib/zoneinfo/_tzpath.py
@@ -87,7 +87,7 @@ def _validate_tzfile_path(path, _base=_TEST_PATH):
87
raise ValueError(
88
"ZoneInfo key must not be an empty string"
89
)
90
- elif path == b"":
+ elif isinstance(path, bytes) and path == b"":
91
92
"ZoneInfo key must not be an empty bytes object"
93
0 commit comments