summaryrefslogtreecommitdiff
path: root/dev-python/typed-ast/files/typed-ast-1.4.3-python310.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-04 19:18:10 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-10-04 19:18:10 +0100
commit07b0c0005f55e652101816d9f4cfe73403bf0906 (patch)
treeb29108de370177e8ce7c0d0d60e1e4319851d99b /dev-python/typed-ast/files/typed-ast-1.4.3-python310.patch
parent78754950ffa3aaba0f48b1ca1d505caa4a3dfbfa (diff)
gentoo auto-resync : 04:10:2022 - 19:18:10
Diffstat (limited to 'dev-python/typed-ast/files/typed-ast-1.4.3-python310.patch')
-rw-r--r--dev-python/typed-ast/files/typed-ast-1.4.3-python310.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-python/typed-ast/files/typed-ast-1.4.3-python310.patch b/dev-python/typed-ast/files/typed-ast-1.4.3-python310.patch
new file mode 100644
index 000000000000..7c95f2465f0d
--- /dev/null
+++ b/dev-python/typed-ast/files/typed-ast-1.4.3-python310.patch
@@ -0,0 +1,30 @@
+https://github.com/python/typed_ast/commit/123286721923ae8f3885dbfbad94d6ca940d5c96
+https://bugs.gentoo.org/874900
+
+From 123286721923ae8f3885dbfbad94d6ca940d5c96 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
+Date: Wed, 10 Nov 2021 19:15:50 +0100
+Subject: [PATCH] Define _PyUnicode_DecodeUnicodeEscape even on Python 3.6+
+ (#171)
+
+--- a/ast3/Python/ast.c
++++ b/ast3/Python/ast.c
+@@ -56,6 +56,8 @@ _PyBytes_DecodeEscape(const char *s,
+ return PyBytes_DecodeEscape(s, len, errors, unicode, recode_encoding);
+ }
+
++#endif
++
+ PyObject *
+ _PyUnicode_DecodeUnicodeEscape(const char *s,
+ Py_ssize_t size,
+@@ -66,8 +68,6 @@ _PyUnicode_DecodeUnicodeEscape(const char *s,
+ return PyUnicode_DecodeUnicodeEscape(s, size, errors);
+ }
+
+-#endif
+-
+ static int validate_stmts(asdl_seq *);
+ static int validate_exprs(asdl_seq *, expr_context_ty, int);
+ static int validate_nonempty_seq(asdl_seq *, const char *, const char *);
+