mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-114713: Revert gh-114731 (#133330)
Revert "gh-114713: Handle case of an empty string passed to `zoneinfo.ZoneInfo` (#114731)"
This reverts commit 884df116d7
.
This commit is contained in:
parent
ca0a96dfaa
commit
fe44fc4f43
3 changed files with 0 additions and 7 deletions
|
@ -83,11 +83,6 @@ _TEST_PATH = os.path.normpath(os.path.join("_", "_"))[:-1]
|
|||
|
||||
|
||||
def _validate_tzfile_path(path, _base=_TEST_PATH):
|
||||
if not path:
|
||||
raise ValueError(
|
||||
"ZoneInfo key must not be an empty string"
|
||||
)
|
||||
|
||||
if os.path.isabs(path):
|
||||
raise ValueError(
|
||||
f"ZoneInfo keys may not be absolute paths, got: {path}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue