-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dateutil to 2.5.0 with updated zoneinfo
- Loading branch information
Showing
10 changed files
with
735 additions
and
559 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# -*- coding: utf-8 -*- | ||
__version__ = "2.4.2" | ||
__version__ = "2.5.0" |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from .tz import * | ||
from six import PY3 | ||
|
||
__all__ = ["tzutc", "tzoffset", "tzlocal", "tzfile", "tzrange", | ||
"tzstr", "tzical", "tzwin", "tzwinlocal", "gettz"] | ||
|
||
def tzname_in_python2(namefunc): | ||
"""Change unicode output into bytestrings in Python 2 | ||
tzname() API changed in Python 3. It used to return bytes, but was changed | ||
to unicode strings | ||
""" | ||
def adjust_encoding(*args, **kwargs): | ||
name = namefunc(*args, **kwargs) | ||
if name is not None and not PY3: | ||
name = name.encode() | ||
|
||
return name | ||
|
||
return adjust_encoding |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.