summaryrefslogtreecommitdiff
path: root/Lib/python
diff options
context:
space:
mode:
authorSeth R Johnson <johnsonsr@ornl.gov>2018-02-22 10:10:12 -0500
committerSeth R Johnson <johnsonsr@ornl.gov>2022-02-06 13:51:37 -0500
commitde78b80de9d1c49d8360ccfef874892430c5e462 (patch)
tree7670719815e46c0a557ce7a4538cfcc4d1ddfbfc /Lib/python
parentd7e0aaa57d40de56ea45ca25ee8494fdfec2accb (diff)
downloadswig-de78b80de9d1c49d8360ccfef874892430c5e462.tar.gz
Renames performed by `%namewarn` with `rename=` are printed in warning message
This is necessary for regex-like renames (where you can't use the #define trick as is done in many of the %keywordwarn directives). It's now unnecessary to print the "renaming to '`x`'" code explicitly by the kw.swg files.
Diffstat (limited to 'Lib/python')
-rw-r--r--Lib/python/pythonkw.swg2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/python/pythonkw.swg b/Lib/python/pythonkw.swg
index 0138e40e4..a21034524 100644
--- a/Lib/python/pythonkw.swg
+++ b/Lib/python/pythonkw.swg
@@ -2,7 +2,7 @@
Warnings for Python keywords, built-in names and bad names.
*/
-#define PYTHONKW(x) %keywordwarn("'" `x` "' is a python keyword, renaming to '_" `x` "'", rename="_%s") `x`
+#define PYTHONKW(x) %keywordwarn("'" `x` "' is a python keyword", rename="_%s") `x`
#define PYTHONBN(x) %builtinwarn("'" `x` "' conflicts with a built-in name in python") `x`