mirror of https://github.com/tqdm/tqdm.git
drop redundant __future__ imports
This commit is contained in:
parent
a587f3037e
commit
8f8560c945
|
@ -1,8 +1,6 @@
|
||||||
"""
|
"""
|
||||||
Auto-generate tqdm/completion.sh from docstrings.
|
Auto-generate tqdm/completion.sh from docstrings.
|
||||||
"""
|
"""
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
from io import open as io_open
|
from io import open as io_open
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
"""
|
"""
|
||||||
Auto-generate README.rst from .meta/.readme.rst and docstrings.
|
Auto-generate README.rst from .meta/.readme.rst and docstrings.
|
||||||
"""
|
"""
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from io import open as io_open
|
from io import open as io_open
|
||||||
from os import path
|
from os import path
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
# Write the benchmarking functions here.
|
# Write the benchmarking functions here.
|
||||||
# See "Writing benchmarks" in the asv docs for more information.
|
# See "Writing benchmarks" in the asv docs for more information.
|
||||||
from __future__ import division
|
|
||||||
|
|
||||||
from functools import partial
|
from functools import partial
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,6 @@ Options:
|
||||||
NOTSET
|
NOTSET
|
||||||
-d, --debug-trace Print lots of debugging information (-D NOTSET)
|
-d, --debug-trace Print lots of debugging information (-D NOTSET)
|
||||||
"""
|
"""
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import io
|
import io
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
from concurrent.futures import ThreadPoolExecutor
|
from concurrent.futures import ThreadPoolExecutor
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from multiprocessing import Pool, RLock, freeze_support
|
from multiprocessing import Pool, RLock, freeze_support
|
||||||
|
|
|
@ -10,8 +10,6 @@ any input string to `tqdm.write()`, and supply the arguments
|
||||||
|
|
||||||
A reusable canonical example is given below:
|
A reusable canonical example is given below:
|
||||||
"""
|
"""
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import contextlib
|
import contextlib
|
||||||
import sys
|
import sys
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
# pylint: disable=missing-module-docstring, missing-class-docstring
|
# pylint: disable=missing-module-docstring, missing-class-docstring
|
||||||
# pylint: disable=missing-function-docstring, no-self-use
|
# pylint: disable=missing-function-docstring, no-self-use
|
||||||
from __future__ import absolute_import
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import logging.handlers
|
import logging.handlers
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
from __future__ import division
|
|
||||||
|
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
from .tests_tqdm import importorskip, mark
|
from .tests_tqdm import importorskip, mark
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
from __future__ import division
|
|
||||||
|
|
||||||
from .tests_tqdm import importorskip, mark
|
from .tests_tqdm import importorskip, mark
|
||||||
|
|
||||||
pytestmark = mark.slow
|
pytestmark = mark.slow
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
from __future__ import division, print_function
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
from __future__ import division
|
|
||||||
|
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
from threading import Event
|
from threading import Event
|
||||||
from time import sleep, time
|
from time import sleep, time
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Advice: use repr(our_file.read()) to print the full output of tqdm
|
# 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.
|
# (else '\r' will replace the previous lines and you'll see only the latest.
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import csv
|
import csv
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
"""
|
"""
|
||||||
Thin wrappers around `concurrent.futures`.
|
Thin wrappers around `concurrent.futures`.
|
||||||
"""
|
"""
|
||||||
from __future__ import absolute_import
|
|
||||||
|
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
|
|
||||||
from ..auto import tqdm as tqdm_auto
|
from ..auto import tqdm as tqdm_auto
|
||||||
|
|
|
@ -8,8 +8,6 @@ Usage:
|
||||||
|
|
||||||
![screenshot](https://img.tqdm.ml/screenshot-discord.png)
|
![screenshot](https://img.tqdm.ml/screenshot-discord.png)
|
||||||
"""
|
"""
|
||||||
from __future__ import absolute_import
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
from os import getenv
|
from os import getenv
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
"""
|
"""
|
||||||
Thin wrappers around `itertools`.
|
Thin wrappers around `itertools`.
|
||||||
"""
|
"""
|
||||||
from __future__ import absolute_import
|
|
||||||
|
|
||||||
import itertools
|
import itertools
|
||||||
|
|
||||||
from ..auto import tqdm as tqdm_auto
|
from ..auto import tqdm as tqdm_auto
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
"""
|
"""
|
||||||
Helper functionality for interoperability with stdlib `logging`.
|
Helper functionality for interoperability with stdlib `logging`.
|
||||||
"""
|
"""
|
||||||
from __future__ import absolute_import
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
|
|
|
@ -8,8 +8,6 @@ Usage:
|
||||||
|
|
||||||
![screenshot](https://img.tqdm.ml/screenshot-slack.png)
|
![screenshot](https://img.tqdm.ml/screenshot-slack.png)
|
||||||
"""
|
"""
|
||||||
from __future__ import absolute_import
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
from os import getenv
|
from os import getenv
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,6 @@ Usage:
|
||||||
|
|
||||||
![screenshot](https://img.tqdm.ml/screenshot-telegram.gif)
|
![screenshot](https://img.tqdm.ml/screenshot-telegram.gif)
|
||||||
"""
|
"""
|
||||||
from __future__ import absolute_import
|
|
||||||
|
|
||||||
from os import getenv
|
from os import getenv
|
||||||
from warnings import warn
|
from warnings import warn
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
"""
|
"""
|
||||||
IO/concurrency helpers for `tqdm.contrib`.
|
IO/concurrency helpers for `tqdm.contrib`.
|
||||||
"""
|
"""
|
||||||
from __future__ import absolute_import
|
|
||||||
|
|
||||||
from collections import deque
|
from collections import deque
|
||||||
from concurrent.futures import ThreadPoolExecutor
|
from concurrent.futures import ThreadPoolExecutor
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
from __future__ import absolute_import
|
|
||||||
|
|
||||||
from functools import partial
|
from functools import partial
|
||||||
|
|
||||||
from dask.callbacks import Callback
|
from dask.callbacks import Callback
|
||||||
|
|
|
@ -8,8 +8,6 @@ Usage:
|
||||||
"""
|
"""
|
||||||
# future division is important to divide integers and get as
|
# future division is important to divide integers and get as
|
||||||
# a result precise floating numbers (instead of truncated int)
|
# a result precise floating numbers (instead of truncated int)
|
||||||
from __future__ import absolute_import, division
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from warnings import warn
|
from warnings import warn
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
from __future__ import absolute_import, division
|
|
||||||
|
|
||||||
from copy import copy
|
from copy import copy
|
||||||
from functools import partial
|
from functools import partial
|
||||||
|
|
||||||
|
|
|
@ -7,10 +7,6 @@ Usage:
|
||||||
>>> for i in trange(10):
|
>>> 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 compatibility functions and utilities
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -6,8 +6,6 @@ Usage:
|
||||||
>>> for i in trange(10):
|
>>> for i in trange(10):
|
||||||
... ...
|
... ...
|
||||||
"""
|
"""
|
||||||
from __future__ import absolute_import
|
|
||||||
|
|
||||||
from warnings import warn
|
from warnings import warn
|
||||||
|
|
||||||
from rich.progress import (
|
from rich.progress import (
|
||||||
|
|
|
@ -7,8 +7,6 @@ Usage:
|
||||||
>>> for i in trange(10):
|
>>> for i in trange(10):
|
||||||
... ...
|
... ...
|
||||||
"""
|
"""
|
||||||
from __future__ import absolute_import, division
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from collections import OrderedDict, defaultdict
|
from collections import OrderedDict, defaultdict
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
|
|
|
@ -6,8 +6,6 @@ Usage:
|
||||||
>>> for i in trange(10):
|
>>> for i in trange(10):
|
||||||
... ...
|
... ...
|
||||||
"""
|
"""
|
||||||
from __future__ import absolute_import, division
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
from warnings import warn
|
from warnings import warn
|
||||||
|
|
Loading…
Reference in New Issue