aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-parso/fix-python-3.8.2.patch
diff options
context:
space:
mode:
authorKevin Daudt <kdaudt@alpinelinux.org>2020-03-04 11:33:26 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2020-03-04 11:56:22 +0000
commitca407f8ab56cbd7c19517f62e227e1669d08f5aa (patch)
treed748c59d4e499fd4049e859cc36076f2a0f9e948 /community/py3-parso/fix-python-3.8.2.patch
parentd1594385ceeb830de59c513c8ec8ef51682cfc2d (diff)
downloadaports-ca407f8ab56cbd7c19517f62e227e1669d08f5aa.tar.bz2
aports-ca407f8ab56cbd7c19517f62e227e1669d08f5aa.tar.xz
community/py3-parso: upgrade to 0.6.2
Closes !4984
Diffstat (limited to 'community/py3-parso/fix-python-3.8.2.patch')
-rw-r--r--community/py3-parso/fix-python-3.8.2.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/community/py3-parso/fix-python-3.8.2.patch b/community/py3-parso/fix-python-3.8.2.patch
new file mode 100644
index 0000000000..1a2254c2b6
--- /dev/null
+++ b/community/py3-parso/fix-python-3.8.2.patch
@@ -0,0 +1,15 @@
+diff --git a/parso/python/errors.py b/parso/python/errors.py
+index a6f3ae9..afc207d 100644
+--- a/parso/python/errors.py
++++ b/parso/python/errors.py
+@@ -977,8 +977,8 @@ class _CheckAssignmentRule(SyntaxRule):
+ if error is not None:
+ if is_namedexpr:
+ # c.f. CPython bpo-39176, should be changed in next release
+- # message = 'cannot use assignment expressions with %s' % error
+- message = 'cannot use named assignment with %s' % error
++ message = 'cannot use assignment expressions with %s' % error
++ #message = 'cannot use named assignment with %s' % error
+ else:
+ cannot = "can't" if self._normalizer.version < (3, 8) else "cannot"
+ message = ' '.join([cannot, "delete" if is_deletion else "assign to", error])