Commit 5b14c081 authored by Stefan Behnel's avatar Stefan Behnel

use portable #define instead of directly calling a Py3.3+ only function

parent bb4fdbfd
...@@ -11997,7 +11997,7 @@ class CoerceToBooleanNode(CoercionNode): ...@@ -11997,7 +11997,7 @@ class CoerceToBooleanNode(CoercionNode):
Builtin.set_type: 'PySet_GET_SIZE', Builtin.set_type: 'PySet_GET_SIZE',
Builtin.frozenset_type: 'PySet_GET_SIZE', Builtin.frozenset_type: 'PySet_GET_SIZE',
Builtin.bytes_type: 'PyBytes_GET_SIZE', Builtin.bytes_type: 'PyBytes_GET_SIZE',
Builtin.unicode_type: 'PyUnicode_GET_LENGTH', Builtin.unicode_type: '__Pyx_PyUnicode_GET_LENGTH',
} }
def __init__(self, arg, env): def __init__(self, arg, env):
......
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