summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Plotnick <shrike@netaxs.com>2012-03-23 10:19:08 -0400
committerJulien Danjou <julien@danjou.info>2012-03-23 15:31:57 +0100
commiteaa943c23e36152add4b5e4e3d62b89b371d31db (patch)
tree8b7bdbd3a45e219a0f29faa94495821834627bc3
parent12cb81c5b502b56ca4b86ac29bea6cf3e5d8d396 (diff)
Rename the ExprType "parent" attribute to "parents".
This is fallout from commit 76ca2c0b1527541be59c344118c538ba055ad9d8, which renamed the *parent parameter of ExprType.__init__, but failed to rename the instance attribute to which it was assigned. Signed-off-by: Julien Danjou <julien@danjou.info>
-rw-r--r--xcbgen/xtypes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/xcbgen/xtypes.py b/xcbgen/xtypes.py
index 14c318a..c789158 100644
--- a/xcbgen/xtypes.py
+++ b/xcbgen/xtypes.py
@@ -221,11 +221,11 @@ class ExprType(Type):
Public fields added:
expr is an Expression object containing the value of the field.
'''
- def __init__(self, elt, member, *parent):
+ def __init__(self, elt, member, *parents):
Type.__init__(self, member.name)
self.is_expr = True
self.member = member
- self.parent = parent
+ self.parents = parents
self.expr = Expression(list(elt)[0], self)