From 5924cc4150be4a08c6f31bbfa9fcc8a3f3ab1a4f Mon Sep 17 00:00:00 2001 From: Dulmandakh Date: Thu, 13 Jun 2024 22:52:06 +0800 Subject: [PATCH] remove Python 2 (#1547) Co-authored-by: Erik Wrede --- examples/starwars/tests/snapshots/snap_test_query.py | 2 -- .../starwars_relay/tests/snapshots/snap_test_connections.py | 2 -- examples/starwars_relay/tests/snapshots/snap_test_mutation.py | 2 -- .../tests/snapshots/snap_test_objectidentification.py | 2 -- graphene/pyutils/version.py | 2 -- graphene/types/datetime.py | 2 -- graphene/types/decimal.py | 2 -- graphene/types/generic.py | 2 -- graphene/types/json.py | 2 -- graphene/types/uuid.py | 1 - 10 files changed, 19 deletions(-) diff --git a/examples/starwars/tests/snapshots/snap_test_query.py b/examples/starwars/tests/snapshots/snap_test_query.py index b4f05bdb..1ede86e4 100644 --- a/examples/starwars/tests/snapshots/snap_test_query.py +++ b/examples/starwars/tests/snapshots/snap_test_query.py @@ -1,7 +1,5 @@ # -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc -from __future__ import unicode_literals - from snapshottest import Snapshot snapshots = Snapshot() diff --git a/examples/starwars_relay/tests/snapshots/snap_test_connections.py b/examples/starwars_relay/tests/snapshots/snap_test_connections.py index 57a7b7ea..353fee59 100644 --- a/examples/starwars_relay/tests/snapshots/snap_test_connections.py +++ b/examples/starwars_relay/tests/snapshots/snap_test_connections.py @@ -1,7 +1,5 @@ # -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc -from __future__ import unicode_literals - from snapshottest import Snapshot snapshots = Snapshot() diff --git a/examples/starwars_relay/tests/snapshots/snap_test_mutation.py b/examples/starwars_relay/tests/snapshots/snap_test_mutation.py index c35b2aeb..f0012e0a 100644 --- a/examples/starwars_relay/tests/snapshots/snap_test_mutation.py +++ b/examples/starwars_relay/tests/snapshots/snap_test_mutation.py @@ -1,7 +1,5 @@ # -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc -from __future__ import unicode_literals - from snapshottest import Snapshot snapshots = Snapshot() diff --git a/examples/starwars_relay/tests/snapshots/snap_test_objectidentification.py b/examples/starwars_relay/tests/snapshots/snap_test_objectidentification.py index b02a420c..ab83e358 100644 --- a/examples/starwars_relay/tests/snapshots/snap_test_objectidentification.py +++ b/examples/starwars_relay/tests/snapshots/snap_test_objectidentification.py @@ -1,7 +1,5 @@ # -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc -from __future__ import unicode_literals - from snapshottest import Snapshot diff --git a/graphene/pyutils/version.py b/graphene/pyutils/version.py index 8a3be07a..c5f893f5 100644 --- a/graphene/pyutils/version.py +++ b/graphene/pyutils/version.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import os import subprocess diff --git a/graphene/types/datetime.py b/graphene/types/datetime.py index a22c5cd3..7bfd9bd2 100644 --- a/graphene/types/datetime.py +++ b/graphene/types/datetime.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - import datetime from graphql.error import GraphQLError diff --git a/graphene/types/decimal.py b/graphene/types/decimal.py index 0c6ccc97..69952f96 100644 --- a/graphene/types/decimal.py +++ b/graphene/types/decimal.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - from decimal import Decimal as _Decimal from graphql import Undefined diff --git a/graphene/types/generic.py b/graphene/types/generic.py index 2a3c8d52..1c007211 100644 --- a/graphene/types/generic.py +++ b/graphene/types/generic.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from graphql.language.ast import ( BooleanValueNode, FloatValueNode, diff --git a/graphene/types/json.py b/graphene/types/json.py index ca55836b..806d1be6 100644 --- a/graphene/types/json.py +++ b/graphene/types/json.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - import json from graphql import Undefined diff --git a/graphene/types/uuid.py b/graphene/types/uuid.py index f2ba1fcb..773e31c7 100644 --- a/graphene/types/uuid.py +++ b/graphene/types/uuid.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import from uuid import UUID as _UUID from graphql.language.ast import StringValueNode