projects
/
free-sw
/
xcb
/
proto
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0d65da
)
Simplify boolean attribute retrieval
author
Daniel Martin
<consume.noise@gmail.com>
Fri, 11 Jan 2013 17:10:08 +0000
(18:10 +0100)
committer
Daniel Martin
<consume.noise@gmail.com>
Thu, 14 Feb 2013 19:40:34 +0000
(20:40 +0100)
xcbgen/xtypes.py
patch
|
blob
|
history
diff --git
a/xcbgen/xtypes.py
b/xcbgen/xtypes.py
index
f6d4634
..
c97273f
100644
(file)
--- a/
xcbgen/xtypes.py
+++ b/
xcbgen/xtypes.py
@@
-593,8
+593,7
@@
class Event(ComplexType):
ComplexType.__init__(self, name, elt)
self.opcodes = {}
- tmp = elt.get('no-sequence-number')
- self.has_seq = (tmp == None or tmp.lower() == 'false' or tmp == '0')
+ self.has_seq = not bool(elt.get('no-sequence-number'))
self.doc = None
for item in list(elt):