Skip to content

Commit 5622673

Browse files
committed
Use pypromise package for Promises
1 parent a4caacc commit 5622673

File tree

8 files changed

+7
-459
lines changed

8 files changed

+7
-459
lines changed

graphql/execution/executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import collections
22
import functools
33
import logging
4+
from promise import Promise, is_thenable, promise_for_dict, promisify
45

56
from ..error import GraphQLError
6-
from ..pyutils.aplus import Promise, is_thenable, promise_for_dict, promisify
77
from ..pyutils.default_ordered_dict import DefaultOrderedDict
88
from ..type import (GraphQLEnumType, GraphQLInterfaceType, GraphQLList,
99
GraphQLNonNull, GraphQLObjectType, GraphQLScalarType,

graphql/execution/executors/asyncio.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
from __future__ import absolute_import
22

33
from asyncio import Future, ensure_future, get_event_loop, iscoroutine, wait
4-
5-
from graphql.pyutils.aplus import Promise
4+
from promise import Promise
65

76

87
def process_future_result(promise):

graphql/execution/executors/gevent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from __future__ import absolute_import
22

33
import gevent
4+
from promise import Promise
45

5-
from ...pyutils.aplus import Promise
66
from .utils import process
77

88

graphql/execution/executors/process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from multiprocessing import Process, Queue
2+
from promise import Promise
23

3-
from ...pyutils.aplus import Promise
44
from .utils import process
55

66

graphql/execution/executors/thread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from multiprocessing.pool import ThreadPool
22
from threading import Thread
3+
from promise import Promise
34

4-
from ...pyutils.aplus import Promise
55
from .utils import process
66

77

graphql/execution/tests/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from graphql.pyutils.aplus import Promise
1+
from promise import Promise
22

33

44
def resolved(value):

0 commit comments

Comments
 (0)