small fix
[enigma2.git] / lib / actions / parseactions.py
index 683febd9a13f68c328696ccd465b56009972abd2..4ab71af79aa306cc47a9953e9ea658c66798ec38 100644 (file)
@@ -1,6 +1,6 @@
 # takes a header file, outputs action ids
 
-import token, tokenize, os, sys, string
+import tokenize, sys, string
 
 def filter(g):
        while 1:
@@ -48,6 +48,11 @@ def do_file(f, mode):
                if t == "enum" and state == classstate + 1:
                        actionname = tokens.next()
                        
+                       if actionname == "{":
+                               while tokens.next() != "}":
+                                       pass
+                               continue
+                       
                        if actionname[-7:] == "Actions":
                                if tokens.next() != "{":
                                        try: