projects
/
pinmux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stronger autopep8 whitespace cleanup
[pinmux.git]
/
src
/
pinmux_generator.py
diff --git
a/src/pinmux_generator.py
b/src/pinmux_generator.py
index cff59d1cbcb0a9fd0cd7dfa93baa984c6670d8ec..6b8452590082b55fcaad1b2e2bc28102967498a0 100644
(file)
--- a/
src/pinmux_generator.py
+++ b/
src/pinmux_generator.py
@@
-72,7
+72,7
@@
if __name__ == '__main__':
sys.exit(0)
if pinspec:
sys.exit(0)
if pinspec:
- if
not modules.has_key(pinspec)
:
+ if
pinspec not in modules
:
print "ERROR: spec type '%s' does not exist" % pinspec
printhelp()
sys.exit(1)
print "ERROR: spec type '%s' does not exist" % pinspec
printhelp()
sys.exit(1)
@@
-81,7
+81,7
@@
if __name__ == '__main__':
specgen(output_dir, pinout, bankspec, fixedpins)
else:
gentypes = {'bsv': bsvgen}
specgen(output_dir, pinout, bankspec, fixedpins)
else:
gentypes = {'bsv': bsvgen}
- if
not gentypes.has_key(output_type)
:
+ if
output_type not in gentypes
:
print "ERROR: output type '%s' does not exist" % output_type
printhelp()
sys.exit(0)
print "ERROR: output type '%s' does not exist" % output_type
printhelp()
sys.exit(0)