Permalink
Browse files

Fix enum number generation.

Signed-off-by: Julien Danjou <julien@danjou.info>
  • Loading branch information...
1 parent ecc9945 commit 4405f701024c102a97b28e18cf3ae865553051bd @jd jd committed with sigalrm Jan 24, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/py_client.py
View
@@ -175,7 +175,10 @@ def py_enum(self, name):
for (enam, eval) in self.values:
_py(' %s = %s', _n(enam), eval if eval != '' else count)
- count += 1
+ if eval != '':
+ count = int(eval) + 1
+ else:
+ count += 1
def _py_type_setup(self, name, postfix=''):
'''

0 comments on commit 4405f70

Please sign in to comment.