Skip to content

Commit 3024091

Browse files
committed
fix python3 support
1 parent e2d3961 commit 3024091

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gdapi.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,7 @@ def _bind_methods(self, schema):
479479
# a better way to do this
480480
cb = lambda type_name=type_name, method=m: \
481481
lambda *args, **kw: method(type_name, *args, **kw)
482-
if hasattr(type, type_collection) and \
483-
test_method in typ[type_collection]:
482+
if test_method in getattr(typ, type_collection, []):
484483
setattr(self, '_'.join([method_name, name_variant]),
485484
cb())
486485

0 commit comments

Comments
 (0)