Skip to content

Commit

Permalink
Remove future imports (#2897)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrocklin authored Jul 29, 2019
1 parent 157eada commit cc4fc7d
Show file tree
Hide file tree
Showing 128 changed files with 2 additions and 262 deletions.
2 changes: 0 additions & 2 deletions distributed/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from . import config
from dask.config import config
from .actor import Actor, ActorFuture
Expand Down
2 changes: 0 additions & 2 deletions distributed/_ipython_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
after which we can import them instead of having our own definitions.
"""

from __future__ import print_function

import atexit
import os

Expand Down
2 changes: 0 additions & 2 deletions distributed/batched.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from collections import deque
import logging

Expand Down
2 changes: 0 additions & 2 deletions distributed/cfexecutor.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import concurrent.futures as cf
import weakref

Expand Down
2 changes: 0 additions & 2 deletions distributed/cli/dask_remote.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import click
from distributed.cli.utils import check_python_3, install_signal_handlers
from distributed.submit import _remote
Expand Down
2 changes: 0 additions & 2 deletions distributed/cli/dask_scheduler.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import atexit
import logging
import gc
Expand Down
2 changes: 0 additions & 2 deletions distributed/cli/dask_ssh.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from distributed.deploy.ssh import SSHCluster
import click

Expand Down
2 changes: 0 additions & 2 deletions distributed/cli/dask_worker.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import atexit
import logging
import multiprocessing
Expand Down
2 changes: 0 additions & 2 deletions distributed/cli/tests/test_dask_scheduler.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import pytest

pytest.importorskip("requests")
Expand Down
2 changes: 0 additions & 2 deletions distributed/cli/tests/test_dask_worker.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import pytest
from click.testing import CliRunner

Expand Down
3 changes: 0 additions & 3 deletions distributed/cli/tests/test_tls_cli.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
from __future__ import print_function, division, absolute_import

from time import sleep


from distributed import Client
from distributed.utils_test import (
popen,
Expand Down
2 changes: 0 additions & 2 deletions distributed/cli/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from tornado import gen
from tornado.ioloop import IOLoop

Expand Down
2 changes: 0 additions & 2 deletions distributed/client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import atexit
from collections import defaultdict, Iterator
from concurrent.futures import ThreadPoolExecutor, CancelledError
Expand Down
2 changes: 0 additions & 2 deletions distributed/comm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from .addressing import (
parse_address,
unparse_address,
Expand Down
2 changes: 0 additions & 2 deletions distributed/comm/addressing.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import six

import dask
Expand Down
2 changes: 0 additions & 2 deletions distributed/comm/core.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from abc import ABCMeta, abstractmethod, abstractproperty
from datetime import timedelta
import logging
Expand Down
2 changes: 0 additions & 2 deletions distributed/comm/inproc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from collections import deque, namedtuple
import itertools
import logging
Expand Down
2 changes: 0 additions & 2 deletions distributed/comm/registry.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from abc import ABCMeta, abstractmethod

from six import with_metaclass
Expand Down
2 changes: 0 additions & 2 deletions distributed/comm/tcp.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import errno
import logging
import socket
Expand Down
2 changes: 0 additions & 2 deletions distributed/comm/tests/test_comms.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from functools import partial
import os
import sys
Expand Down
2 changes: 0 additions & 2 deletions distributed/comm/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from concurrent.futures import ThreadPoolExecutor
import logging
import socket
Expand Down
2 changes: 0 additions & 2 deletions distributed/compatibility.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import logging
import platform
import sys
Expand Down
2 changes: 0 additions & 2 deletions distributed/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import logging
import logging.config
import os
Expand Down
2 changes: 0 additions & 2 deletions distributed/core.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import asyncio
from collections import defaultdict, deque
from concurrent.futures import CancelledError
Expand Down
2 changes: 0 additions & 2 deletions distributed/counter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from collections import defaultdict

from tornado.ioloop import IOLoop
Expand Down
2 changes: 0 additions & 2 deletions distributed/dashboard/components.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import asyncio
from bisect import bisect
from operator import add
Expand Down
2 changes: 0 additions & 2 deletions distributed/dashboard/core.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from distutils.version import LooseVersion
import os
import warnings
Expand Down
2 changes: 0 additions & 2 deletions distributed/dashboard/export_tool.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import os

from bokeh.core.properties import Int, String
Expand Down
2 changes: 0 additions & 2 deletions distributed/dashboard/scheduler.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from functools import partial
import logging
import math
Expand Down
2 changes: 0 additions & 2 deletions distributed/dashboard/tests/test_components.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import pytest

pytest.importorskip("bokeh")
Expand Down
2 changes: 0 additions & 2 deletions distributed/dashboard/tests/test_scheduler_bokeh.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import json
import re
import ssl
Expand Down
2 changes: 0 additions & 2 deletions distributed/dashboard/tests/test_scheduler_bokeh_html.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import json
import re
import xml.etree.ElementTree
Expand Down
2 changes: 0 additions & 2 deletions distributed/dashboard/tests/test_worker_bokeh.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from operator import add, sub
import re
from time import sleep
Expand Down
2 changes: 0 additions & 2 deletions distributed/dashboard/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from distutils.version import LooseVersion
import os

Expand Down
2 changes: 0 additions & 2 deletions distributed/dashboard/worker.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from functools import partial
import logging
import math
Expand Down
2 changes: 0 additions & 2 deletions distributed/deploy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from ..utils import ignoring

from .cluster import Cluster
Expand Down
2 changes: 0 additions & 2 deletions distributed/deploy/adaptive.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from collections import deque
import logging

Expand Down
2 changes: 0 additions & 2 deletions distributed/deploy/local.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import atexit
import logging
import math
Expand Down
2 changes: 0 additions & 2 deletions distributed/deploy/ssh.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import logging
import socket
import os
Expand Down
2 changes: 0 additions & 2 deletions distributed/deploy/tests/test_adaptive.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from time import sleep

import pytest
Expand Down
2 changes: 0 additions & 2 deletions distributed/deploy/tests/test_local.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from functools import partial
import gc
import multiprocessing
Expand Down
2 changes: 0 additions & 2 deletions distributed/deploy/tests/test_ssh.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from time import sleep

import pytest
Expand Down
2 changes: 0 additions & 2 deletions distributed/diagnostics/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from ..utils import ignoring
from .graph_layout import GraphLayout

Expand Down
2 changes: 0 additions & 2 deletions distributed/diagnostics/eventstream.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import logging

from .plugin import SchedulerPlugin
Expand Down
2 changes: 0 additions & 2 deletions distributed/diagnostics/graph_layout.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from .plugin import SchedulerPlugin


Expand Down
2 changes: 0 additions & 2 deletions distributed/diagnostics/plugin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import logging

logger = logging.getLogger(__name__)
Expand Down
2 changes: 0 additions & 2 deletions distributed/diagnostics/progress.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from collections import defaultdict
import logging
from timeit import default_timer
Expand Down
2 changes: 0 additions & 2 deletions distributed/diagnostics/progress_stream.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import logging

from toolz import valmap, merge
Expand Down
2 changes: 0 additions & 2 deletions distributed/diagnostics/progressbar.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import logging
import html
from timeit import default_timer
Expand Down
2 changes: 0 additions & 2 deletions distributed/diagnostics/task_stream.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from collections import deque
import logging

Expand Down
2 changes: 0 additions & 2 deletions distributed/diagnostics/tests/test_eventstream.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import collections

import pytest
Expand Down
2 changes: 0 additions & 2 deletions distributed/diagnostics/tests/test_plugin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from distributed import Worker
from distributed.utils_test import inc, gen_cluster
from distributed.diagnostics.plugin import SchedulerPlugin
Expand Down
2 changes: 0 additions & 2 deletions distributed/diagnostics/tests/test_progress.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import pytest

from tornado import gen
Expand Down
3 changes: 0 additions & 3 deletions distributed/diagnostics/tests/test_progress_stream.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import print_function, division, absolute_import


import pytest

pytest.importorskip("bokeh")
Expand Down
2 changes: 0 additions & 2 deletions distributed/diagnostics/tests/test_progressbar.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from time import sleep

import pytest
Expand Down
2 changes: 0 additions & 2 deletions distributed/diagnostics/tests/test_task_stream.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import, division, print_function

import os
from time import sleep

Expand Down
2 changes: 0 additions & 2 deletions distributed/diagnostics/tests/test_widgets.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import pytest

pytest.importorskip("ipywidgets")
Expand Down
2 changes: 0 additions & 2 deletions distributed/diskutils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import errno
import glob
import logging
Expand Down
2 changes: 0 additions & 2 deletions distributed/lock.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from collections import defaultdict, deque
from datetime import timedelta
import logging
Expand Down
2 changes: 0 additions & 2 deletions distributed/metrics.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import collections
from functools import wraps
import sys
Expand Down
2 changes: 0 additions & 2 deletions distributed/nanny.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

from datetime import timedelta
import logging
from multiprocessing.queues import Empty
Expand Down
2 changes: 0 additions & 2 deletions distributed/node.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import logging
import warnings
import weakref
Expand Down
2 changes: 0 additions & 2 deletions distributed/process.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import atexit
from datetime import timedelta
import logging
Expand Down
2 changes: 0 additions & 2 deletions distributed/proctitle.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, division, absolute_import

import os

try:
Expand Down
2 changes: 0 additions & 2 deletions distributed/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
'children': {...}}}
}
"""
from __future__ import print_function, division, absolute_import

import bisect
from collections import defaultdict, deque
import linecache
Expand Down
Loading

0 comments on commit cc4fc7d

Please sign in to comment.