drop redundant __future__ imports

This commit is contained in:
Casper da Costa-Luis 2023-03-03 15:50:04 +00:00
parent a587f3037e
commit 8f8560c945
No known key found for this signature in database
GPG Key ID: F5126E5FBD2512AD
26 changed files with 0 additions and 54 deletions

View File

@ -1,8 +1,6 @@
"""
Auto-generate tqdm/completion.sh from docstrings.
"""
from __future__ import print_function
import re
import sys
from io import open as io_open

View File

@ -1,8 +1,6 @@
"""
Auto-generate README.rst from .meta/.readme.rst and docstrings.
"""
from __future__ import print_function
import sys
from io import open as io_open
from os import path

View File

@ -1,7 +1,5 @@
# Write the benchmarking functions here.
# See "Writing benchmarks" in the asv docs for more information.
from __future__ import division
from functools import partial

View File

@ -18,8 +18,6 @@ Options:
NOTSET
-d, --debug-trace Print lots of debugging information (-D NOTSET)
"""
from __future__ import print_function
import io
import logging
import os

View File

@ -1,5 +1,3 @@
from __future__ import print_function
from concurrent.futures import ThreadPoolExecutor
from functools import partial
from multiprocessing import Pool, RLock, freeze_support

View File

@ -10,8 +10,6 @@ any input string to `tqdm.write()`, and supply the arguments
A reusable canonical example is given below:
"""
from __future__ import print_function
import contextlib
import sys
from time import sleep

View File

@ -1,7 +1,5 @@
# pylint: disable=missing-module-docstring, missing-class-docstring
# pylint: disable=missing-function-docstring, no-self-use
from __future__ import absolute_import
import logging
import logging.handlers
import sys

View File

@ -1,5 +1,3 @@
from __future__ import division
from time import sleep
from .tests_tqdm import importorskip, mark

View File

@ -1,5 +1,3 @@
from __future__ import division
from .tests_tqdm import importorskip, mark
pytestmark = mark.slow

View File

@ -1,5 +1,3 @@
from __future__ import division, print_function
import sys
from contextlib import contextmanager
from functools import wraps

View File

@ -1,5 +1,3 @@
from __future__ import division
from functools import wraps
from threading import Event
from time import sleep, time

View File

@ -1,8 +1,6 @@
# -*- coding: utf-8 -*-
# Advice: use repr(our_file.read()) to print the full output of tqdm
# (else '\r' will replace the previous lines and you'll see only the latest.
from __future__ import print_function
import csv
import os
import re

View File

@ -1,8 +1,6 @@
"""
Thin wrappers around `concurrent.futures`.
"""
from __future__ import absolute_import
from contextlib import contextmanager
from ..auto import tqdm as tqdm_auto

View File

@ -8,8 +8,6 @@ Usage:
![screenshot](https://img.tqdm.ml/screenshot-discord.png)
"""
from __future__ import absolute_import
import logging
from os import getenv

View File

@ -1,8 +1,6 @@
"""
Thin wrappers around `itertools`.
"""
from __future__ import absolute_import
import itertools
from ..auto import tqdm as tqdm_auto

View File

@ -1,8 +1,6 @@
"""
Helper functionality for interoperability with stdlib `logging`.
"""
from __future__ import absolute_import
import logging
import sys
from contextlib import contextmanager

View File

@ -8,8 +8,6 @@ Usage:
![screenshot](https://img.tqdm.ml/screenshot-slack.png)
"""
from __future__ import absolute_import
import logging
from os import getenv

View File

@ -8,8 +8,6 @@ Usage:
![screenshot](https://img.tqdm.ml/screenshot-telegram.gif)
"""
from __future__ import absolute_import
from os import getenv
from warnings import warn

View File

@ -1,8 +1,6 @@
"""
IO/concurrency helpers for `tqdm.contrib`.
"""
from __future__ import absolute_import
from collections import deque
from concurrent.futures import ThreadPoolExecutor

View File

@ -1,5 +1,3 @@
from __future__ import absolute_import
from functools import partial
from dask.callbacks import Callback

View File

@ -8,8 +8,6 @@ Usage:
"""
# future division is important to divide integers and get as
# a result precise floating numbers (instead of truncated int)
from __future__ import absolute_import, division
import re
from warnings import warn

View File

@ -1,5 +1,3 @@
from __future__ import absolute_import, division
from copy import copy
from functools import partial

View File

@ -7,10 +7,6 @@ Usage:
>>> for i in trange(10):
... ...
"""
# future division is important to divide integers and get as
# a result precise floating numbers (instead of truncated int)
from __future__ import absolute_import, division
# import compatibility functions and utilities
import re
import sys

View File

@ -6,8 +6,6 @@ Usage:
>>> for i in trange(10):
... ...
"""
from __future__ import absolute_import
from warnings import warn
from rich.progress import (

View File

@ -7,8 +7,6 @@ Usage:
>>> for i in trange(10):
... ...
"""
from __future__ import absolute_import, division
import sys
from collections import OrderedDict, defaultdict
from contextlib import contextmanager

View File

@ -6,8 +6,6 @@ Usage:
>>> for i in trange(10):
... ...
"""
from __future__ import absolute_import, division
import re
import sys
from warnings import warn