git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enigma2-{Network,NetworkWizard,WirelessLan}: more work on wireless lan / networking...
[enigma2.git]
/
lib
/
actions
/
parseactions.py
diff --git
a/lib/actions/parseactions.py
b/lib/actions/parseactions.py
index d0c1aec374c9ab2c498d98771f1dade63f6737df..cad432a7e6f868a016db152a064411293f225e5a 100644
(file)
--- a/
lib/actions/parseactions.py
+++ b/
lib/actions/parseactions.py
@@
-1,6
+1,6
@@
# takes a header file, outputs action ids
# takes a header file, outputs action ids
-import token
, tokenize, os
, sys, string
+import token
ize
, sys, string
def filter(g):
while 1:
def filter(g):
while 1:
@@
-65,7
+65,7
@@
def do_file(f, mode):
except:
pass
except:
pass
- raise
"action enum must be simple."
+ raise
Exception("action enum must be simple.")
counter = 0
counter = 0
@@
-82,14
+82,14
@@
def do_file(f, mode):
if counter:
if t != ",":
if counter:
if t != ",":
- raise
"no comma"
+ raise
Exception("no comma")
t = tokens.next()
if firsthit:
if mode == "include":
# hack hack hack!!
t = tokens.next()
if firsthit:
if mode == "include":
# hack hack hack!!
- print "#include <lib
" + f[2:]
+ ">"
+ print "#include <lib
/" + '/'.join(f.split('/')[-2:])
+ ">"
else:
print "\t// " + f
else:
print "\t// " + f