From 4b611a8fbad8744257238f391893606f54d98398 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com> Date: Sat, 1 Feb 2020 11:21:00 +0100 Subject: [PATCH] Fix: Updated source to be compatible with python 3.7+. ISSUES CLOSED: #1 --- .gitlab-ci.yml | 4 ++-- CHANGELOG.md | 1 + aiogremlin/driver/resultset.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 75420f5..f5c1c9b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: goblinogm/goblin-buildchain +image: goblinogm/goblin-buildchain:latest-py3.8 cache: @@ -9,7 +9,7 @@ test: services: - name: goblinogm/gremlin-server-python:latest alias: gremlin-server - image: goblinogm/goblin-buildchain + image: goblinogm/goblin-buildchain:latest-py3.8 script: - pip install -U codecov codacy-coverage - pip install -U -r requirements.txt diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fb2557..75fe01a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## v3.3.3 +* Fixed bug preventing code from running on python 3.7+, see [issue #1](https://git.qoto.org/goblin-ogm/aiogremlin/issues/1). ## v3.3.2 * Updated allowed dependency versions, gremlinpython 3.4.4 was causing issues. diff --git a/aiogremlin/driver/resultset.py b/aiogremlin/driver/resultset.py index e759bac..c0a3d64 100644 --- a/aiogremlin/driver/resultset.py +++ b/aiogremlin/driver/resultset.py @@ -59,7 +59,7 @@ class ResultSet: def aggregate_to(self, val): self._aggregate_to = val - async def __aiter__(self): + def __aiter__(self): return self async def __anext__(self): -- GitLab