Fixed Python3 errors

This commit is contained in:
Syrus Akbary 2015-12-02 23:48:40 -08:00
parent 9b839f19e5
commit df9dd33c74
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ class ObjectType(six.with_metaclass(ObjectTypeMeta, FieldsClassType)):
return GraphQLObjectType(
cls._meta.type_name,
description=cls._meta.description,
interfaces=map(schema.T, cls._meta.interfaces),
interfaces=list(map(schema.T, cls._meta.interfaces)),
fields=partial(cls.fields_internal_types, schema),
is_type_of=getattr(cls, 'is_type_of', None)
)

View File

@ -34,7 +34,7 @@ class UnionType(six.with_metaclass(UnionTypeMeta, FieldsClassType)):
return GraphQLUnionType(
cls._meta.type_name,
types=map(schema.T, cls._meta.types),
types=list(map(schema.T, cls._meta.types)),
resolve_type=cls._resolve_type,
description=cls._meta.description,
)