Commit 87049841 authored by Stefan Behnel's avatar Stefan Behnel

Py3 fix

parent 5e37df05
......@@ -845,11 +845,11 @@ class CArgDeclNode(Node):
for name, value in annotation.key_value_pairs:
if not name.is_string_literal:
continue
if name.value == 'type':
if name.value in ('type', b'type'):
explicit_pytype = True
if not explicit_ctype:
annotation = value
elif name.value == 'ctype':
elif name.value in ('ctype', b'ctype'):
explicit_ctype = True
annotation = value
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