Skip to content

Commit

Permalink
Support Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
myint committed Apr 29, 2018
1 parent 3ee2ef5 commit b15dae7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cpp/ast.py
Expand Up @@ -673,9 +673,13 @@ def generate(self):
self.namespace_stack.pop()
continue

result = self._generate_one(token)
if result:
yield result
try:
result = self._generate_one(token)
except StopIteration:
pass
else:
if result:
yield result

def _create_variable(self, pos_token, name, type_name, type_modifiers,
ref_pointer_name_seq, templated_types=None, value=''):
Expand Down

0 comments on commit b15dae7

Please sign in to comment.