2022-01-05 13:43:15 +08:00
|
|
|
From 217b969872938cb021e914c202b8e09cf639c202 Mon Sep 17 00:00:00 2001
|
2022-01-04 16:40:49 +08:00
|
|
|
From: bzg1107 <preloyalwhite@163.com>
|
|
|
|
|
Date: Tue, 4 Jan 2022 16:02:44 +0800
|
|
|
|
|
Subject: [PATCH] cancel require pyparsing version limit
|
|
|
|
|
|
|
|
|
|
---
|
2022-01-05 13:43:15 +08:00
|
|
|
python3/httplib2/auth.py | 2 +-
|
|
|
|
|
requirements.txt | 2 +-
|
|
|
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
2022-01-04 16:40:49 +08:00
|
|
|
|
2022-01-05 13:43:15 +08:00
|
|
|
diff --git a/python3/httplib2/auth.py b/python3/httplib2/auth.py
|
|
|
|
|
index 516fdaa..9d9d7ed 100644
|
|
|
|
|
--- a/python3/httplib2/auth.py
|
|
|
|
|
+++ b/python3/httplib2/auth.py
|
|
|
|
|
@@ -15,7 +15,7 @@ token = pp.Word(tchar).setName("token")
|
|
|
|
|
token68 = pp.Combine(pp.Word("-._~+/" + pp.nums + pp.alphas) + pp.ZeroOrMore("=")).setName("token68")
|
|
|
|
|
|
|
|
|
|
quoted_string = pp.dblQuotedString.copy().setName("quoted-string").setParseAction(unquote)
|
|
|
|
|
-auth_param_name = token.copy().setName("auth-param-name").addParseAction(pp.downcaseTokens)
|
|
|
|
|
+auth_param_name = token.copy().setName("auth-param-name").addParseAction(pp.pyparsing_common.downcase_tokens)
|
|
|
|
|
auth_param = auth_param_name + pp.Suppress("=") + (token ^ quoted_string)
|
|
|
|
|
params = pp.Dict(pp.delimitedList(pp.Group(auth_param)))
|
|
|
|
|
|
2022-01-04 16:40:49 +08:00
|
|
|
diff --git a/requirements.txt b/requirements.txt
|
|
|
|
|
index 4ebe545..bc8d448 100644
|
|
|
|
|
--- a/requirements.txt
|
|
|
|
|
+++ b/requirements.txt
|
|
|
|
|
@@ -1 +1 @@
|
|
|
|
|
-pyparsing>=2.4.2,<3 # TODO include v3 after dropping Python2 support
|
|
|
|
|
+pyparsing>=2.4.2 # TODO include v3 after dropping Python2 support
|
|
|
|
|
--
|
|
|
|
|
2.30.0
|
|
|
|
|
|