Revert "Fix when is 'self' used as a parameter name in Python"
This reverts commit a6efdb7999.
This commit is contained in:
parent
3eb626fda6
commit
7d4af72dde
3 changed files with 2 additions and 8 deletions
|
|
@ -35,10 +35,6 @@ KW(chan, fallthrough)
|
|||
KW(end, function)
|
||||
KW(nil,local)
|
||||
|
||||
struct Keywords {
|
||||
void selfkw(int self) {}
|
||||
};
|
||||
|
||||
%}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
import keyword_rename
|
||||
keyword_rename._in(1)
|
||||
keyword_rename._except(1)
|
||||
|
||||
k = keyword_rename.Keywords()
|
||||
k.selfkw(123)
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ PYTHONKW(None);
|
|||
/*
|
||||
'self' is also a bad Name
|
||||
*/
|
||||
PYTHONKW(self);
|
||||
PYTHONBN(self);
|
||||
|
||||
#undef PYTHONBN
|
||||
#undef PYTHONKW
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue