From ead1a650f8e909e3c112e33deedb13cbda27906f Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 21 Sep 2023 19:40:46 +0200 Subject: [PATCH] Discard __future__ imports left over from Python 2 --- fsspec/core.py | 2 -- fsspec/implementations/http.py | 2 -- fsspec/implementations/libarchive.py | 2 -- fsspec/implementations/memory.py | 2 +- fsspec/implementations/tests/test_local.py | 2 -- fsspec/implementations/zip.py | 2 -- 6 files changed, 1 insertion(+), 11 deletions(-) diff --git a/fsspec/core.py b/fsspec/core.py index 50c446705..6e5a831ae 100644 --- a/fsspec/core.py +++ b/fsspec/core.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import, division, print_function - import io import logging import os diff --git a/fsspec/implementations/http.py b/fsspec/implementations/http.py index 0eb47c984..06551017e 100644 --- a/fsspec/implementations/http.py +++ b/fsspec/implementations/http.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import, division, print_function - import asyncio import io import logging diff --git a/fsspec/implementations/libarchive.py b/fsspec/implementations/libarchive.py index de862b111..849040423 100644 --- a/fsspec/implementations/libarchive.py +++ b/fsspec/implementations/libarchive.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import, division, print_function - from contextlib import contextmanager from ctypes import ( CFUNCTYPE, diff --git a/fsspec/implementations/memory.py b/fsspec/implementations/memory.py index 56437ac25..32daaf0f1 100644 --- a/fsspec/implementations/memory.py +++ b/fsspec/implementations/memory.py @@ -1,4 +1,4 @@ -from __future__ import absolute_import, annotations, division, print_function +from __future__ import annotations import logging from datetime import datetime, timezone diff --git a/fsspec/implementations/tests/test_local.py b/fsspec/implementations/tests/test_local.py index 1974143fe..961537520 100644 --- a/fsspec/implementations/tests/test_local.py +++ b/fsspec/implementations/tests/test_local.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import, division, print_function - import bz2 import gzip import os diff --git a/fsspec/implementations/zip.py b/fsspec/implementations/zip.py index 96bc71ecc..91c8ec4f4 100644 --- a/fsspec/implementations/zip.py +++ b/fsspec/implementations/zip.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import, division, print_function - import zipfile import fsspec