action: remove redundant action_ prefix from classes
The original names are kept as aliases. The basic module has been changed to
use the new API.
diff --git a/tools/munger/scripts/action_gen.py b/tools/munger/scripts/action_gen.py
index 2e26144..bde0291 100644
--- a/tools/munger/scripts/action_gen.py
+++ b/tools/munger/scripts/action_gen.py
@@ -66,7 +66,7 @@
}
template = """
-class action_--TYPE--(--PARENT_TYPE--):
+class --TYPE--(--PARENT_TYPE--):
\"""
Wrapper class for --TYPE-- action object
@@ -85,6 +85,8 @@
outstr = prefix + "action_--TYPE--\\n"
outstr += --PARENT_TYPE--.show(self, prefix)
return outstr
+
+action_--TYPE-- = --TYPE-- # for backwards compatibility
"""
if __name__ == '__main__':