Commit 87049841 authored by Stefan Behnel's avatar Stefan Behnel

Py3 fix

parent 5e37df05
...@@ -845,11 +845,11 @@ class CArgDeclNode(Node): ...@@ -845,11 +845,11 @@ class CArgDeclNode(Node):
for name, value in annotation.key_value_pairs: for name, value in annotation.key_value_pairs:
if not name.is_string_literal: if not name.is_string_literal:
continue continue
if name.value == 'type': if name.value in ('type', b'type'):
explicit_pytype = True explicit_pytype = True
if not explicit_ctype: if not explicit_ctype:
annotation = value annotation = value
elif name.value == 'ctype': elif name.value in ('ctype', b'ctype'):
explicit_ctype = True explicit_ctype = True
annotation = value annotation = value
if explicit_pytype and explicit_ctype: if explicit_pytype and explicit_ctype:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment