Skip to content

Commit 232fece

Browse files
committed
Fix py35 build
1 parent 1f0cde1 commit 232fece

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ after_success:
1818
matrix:
1919
include:
2020
- python: "3.5"
21-
script: import-order graphql
21+
script:
22+
- flake8
23+
- import-order graphql
24+
- py.test --cov=graphql tests tests_py35

graphql/core/error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from .language.location import get_location
21
from .defer import DeferredException
2+
from .language.location import get_location
33

44

55
class Error(Exception):

graphql/core/execution/middlewares/AsyncioExecutionMiddleware.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# flake8: noqa
2-
from asyncio import Future, coroutine, iscoroutine, ensure_future
2+
from asyncio import Future, ensure_future, iscoroutine
33
from graphql.core.defer import Deferred
44

55

66
def process_future_result(deferred):
7-
def handle_future_result(future: Future):
7+
def handle_future_result(future):
88
exception = future.exception()
99
if exception:
1010
deferred.errback(exception)

graphql/core/execution/parallel_execution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import functools
33

44
from graphql.core import ExecutionResult, Source, parse, validate
5-
from graphql.core.defer import Deferred, DeferredList, DeferredDict, defer, fail, succeed
5+
from graphql.core.defer import Deferred, DeferredDict, DeferredList, defer, fail, succeed
66
from graphql.core.error import GraphQLError, format_error
77
from graphql.core.execution import ExecutionContext, ResolveInfo, Undefined, collect_fields, default_resolve_fn, \
88
get_argument_values, get_field_def, get_operation_root_type

0 commit comments

Comments
 (0)