From e715dd707c086194fac85299568b934275b5df40 Mon Sep 17 00:00:00 2001 From: Martin Levy Date: Thu, 21 Sep 2023 10:03:38 -0700 Subject: [PATCH] UsamaSadiq-remove-future-dependency - remove future --- CloudFlare/__init__.py | 1 - CloudFlare/cloudflare.py | 2 -- CloudFlare/network.py | 1 - CloudFlare/utils.py | 2 -- cli4/__main__.py | 2 -- cli4/converters.py | 2 -- requirements.txt | 1 - 7 files changed, 11 deletions(-) diff --git a/CloudFlare/__init__.py b/CloudFlare/__init__.py index b55777d..c0e5dd5 100644 --- a/CloudFlare/__init__.py +++ b/CloudFlare/__init__.py @@ -1,5 +1,4 @@ """ Cloudflare v4 API""" -from __future__ import absolute_import __version__ = '2.12.2' diff --git a/CloudFlare/cloudflare.py b/CloudFlare/cloudflare.py index 94a1b3f..c4aeb1b 100644 --- a/CloudFlare/cloudflare.py +++ b/CloudFlare/cloudflare.py @@ -1,6 +1,4 @@ """ Cloudflare v4 API""" -from __future__ import absolute_import - import json import keyword from requests import RequestException as requests_RequestException, ConnectionError as requests_ConnectionError, exceptions as requests_exceptions, codes as requests_codes diff --git a/CloudFlare/network.py b/CloudFlare/network.py index 36f377c..437b1c9 100644 --- a/CloudFlare/network.py +++ b/CloudFlare/network.py @@ -1,5 +1,4 @@ """ Network for Cloudflare API""" -from __future__ import absolute_import from urllib.parse import urlparse diff --git a/CloudFlare/utils.py b/CloudFlare/utils.py index cad2327..aac10b0 100644 --- a/CloudFlare/utils.py +++ b/CloudFlare/utils.py @@ -1,6 +1,4 @@ """ misc utilities for Cloudflare API""" -from __future__ import absolute_import - import sys import json from requests import __version__ as requests__version__ diff --git a/cli4/__main__.py b/cli4/__main__.py index 89f877e..c0b8a39 100755 --- a/cli4/__main__.py +++ b/cli4/__main__.py @@ -1,7 +1,5 @@ #!/usr/bin/env python """Cloudflare API via command line""" -from __future__ import absolute_import - import sys from .cli4 import cli4 diff --git a/cli4/converters.py b/cli4/converters.py index 77c6b1a..32fe0f9 100644 --- a/cli4/converters.py +++ b/cli4/converters.py @@ -1,6 +1,4 @@ """Cloudflare API via command line""" -from __future__ import absolute_import - import CloudFlare class ConverterError(Exception): diff --git a/requirements.txt b/requirements.txt index 8ad3d26..c10f440 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ requests>=2.4.2 -future pyyaml jsonlines beautifulsoup4