Pre Merge pull request !1 from 纸飞机/openkylin/yangtze
This commit is contained in:
commit
1918302f1b
|
@ -1,3 +1,9 @@
|
||||||
|
pytohn-future (0.18.2-ok2) yangtze; urgency=medium
|
||||||
|
|
||||||
|
* zfj_h CVE-2022-40899 安全更新:Python Charmers Future 0.18.2版本及之前版本安全漏洞.
|
||||||
|
|
||||||
|
-- huang <hrz@bupt.edu.cn> Tue, 21 Feb 2023 14:14:10 +0800
|
||||||
|
|
||||||
python-future (0.18.2-ok1) yangtze; urgency=medium
|
python-future (0.18.2-ok1) yangtze; urgency=medium
|
||||||
|
|
||||||
* Build for openKylin.
|
* Build for openKylin.
|
||||||
|
|
|
@ -225,10 +225,14 @@ LOOSE_HTTP_DATE_RE = re.compile(
|
||||||
(?::(\d\d))? # optional seconds
|
(?::(\d\d))? # optional seconds
|
||||||
)? # optional clock
|
)? # optional clock
|
||||||
\s*
|
\s*
|
||||||
([-+]?\d{2,4}|(?![APap][Mm]\b)[A-Za-z]+)? # timezone
|
(?:
|
||||||
|
([-+]?\d{2,4}|(?![APap][Mm]\b)[A-Za-z]+) # timezone
|
||||||
\s*
|
\s*
|
||||||
(?:\(\w+\))? # ASCII representation of timezone in parens.
|
)?
|
||||||
\s*$""", re.X | re.ASCII)
|
(?:
|
||||||
|
\(\w+\) # ASCII representation of timezone in parens.
|
||||||
|
\s*
|
||||||
|
)?$""", re.X | re.ASCII)
|
||||||
def http2time(text):
|
def http2time(text):
|
||||||
"""Returns time in seconds since epoch of time represented by a string.
|
"""Returns time in seconds since epoch of time represented by a string.
|
||||||
|
|
||||||
|
@ -298,9 +302,11 @@ ISO_DATE_RE = re.compile(
|
||||||
(?::?(\d\d(?:\.\d*)?))? # optional seconds (and fractional)
|
(?::?(\d\d(?:\.\d*)?))? # optional seconds (and fractional)
|
||||||
)? # optional clock
|
)? # optional clock
|
||||||
\s*
|
\s*
|
||||||
|
(?:
|
||||||
([-+]?\d\d?:?(:?\d\d)?
|
([-+]?\d\d?:?(:?\d\d)?
|
||||||
|Z|z)? # timezone (Z is "zero meridian", i.e. GMT)
|
|Z|z) # timezone (Z is "zero meridian", i.e. GMT)
|
||||||
\s*$""", re.X | re. ASCII)
|
\s*
|
||||||
|
)?$""", re.X | re. ASCII)
|
||||||
def iso2time(text):
|
def iso2time(text):
|
||||||
"""
|
"""
|
||||||
As for http2time, but parses the ISO 8601 formats:
|
As for http2time, but parses the ISO 8601 formats:
|
||||||
|
|
Loading…
Reference in New Issue