Skip to content

Commit d02a4fe

Browse files
committed
Fixed imports
1 parent ba8cd06 commit d02a4fe

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ before_install:
2121
source "$HOME/virtualenvs/pypy-$PYPY_VERSION/bin/activate"
2222
fi
2323
install:
24-
- pip install pytest-cov pytest-mock coveralls flake8 isort==3.9.6 gevent==1.1b5 six>=1.10.0 promise>=0.4.2 pytest-benchmark
24+
- pip install pytest-cov pytest-mock coveralls flake8 isort gevent==1.1b5 six>=1.10.0 promise>=0.4.2 pytest-benchmark
2525
- pip install pytest==2.9.2
2626
- pip install -e .
2727
script:

graphql/execution/experimental/resolver.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
import collections
2+
from functools import partial
3+
4+
from promise import Promise
5+
6+
from ...error import GraphQLError, GraphQLLocatedError
7+
from ...type import (GraphQLEnumType, GraphQLInterfaceType, GraphQLList,
8+
GraphQLNonNull, GraphQLObjectType, GraphQLScalarType,
9+
GraphQLUnionType)
10+
from ..base import default_resolve_fn
11+
212
try:
313
from itertools import imap
414
normal_map = map
@@ -7,15 +17,8 @@ def normal_map(func, iter):
717
return list(map(func, iter))
818
imap = map
919

10-
from functools import partial
1120

12-
from promise import Promise
1321

14-
from ...error import GraphQLError, GraphQLLocatedError
15-
from ...type import (GraphQLEnumType, GraphQLInterfaceType, GraphQLList,
16-
GraphQLNonNull, GraphQLObjectType, GraphQLScalarType,
17-
GraphQLUnionType)
18-
from ..base import default_resolve_fn
1922

2023

2124
def is_promise(value):

0 commit comments

Comments
 (0)