diff --git a/packages/python/chart-studio/chart_studio/__init__.py b/packages/python/chart-studio/chart_studio/__init__.py index f613e4f4b40..b684bd97a17 100644 --- a/packages/python/chart-studio/chart_studio/__init__.py +++ b/packages/python/chart-studio/chart_studio/__init__.py @@ -1,2 +1 @@ -from __future__ import absolute_import from chart_studio import plotly, dashboard_objs, grid_objs, session, tools diff --git a/packages/python/chart-studio/chart_studio/api/v2/__init__.py b/packages/python/chart-studio/chart_studio/api/v2/__init__.py index 9013e3197df..c22dc5e4f31 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/__init__.py +++ b/packages/python/chart-studio/chart_studio/api/v2/__init__.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - from chart_studio.api.v2 import ( dash_apps, dashboards, diff --git a/packages/python/chart-studio/chart_studio/api/v2/dash_apps.py b/packages/python/chart-studio/chart_studio/api/v2/dash_apps.py index 5d55e9bc062..b39553dc0d4 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/dash_apps.py +++ b/packages/python/chart-studio/chart_studio/api/v2/dash_apps.py @@ -1,7 +1,7 @@ """ Beta interface to Plotly's /v2/dash-apps endpoints. """ -from __future__ import absolute_import + from chart_studio.api.v2.utils import build_url, request diff --git a/packages/python/chart-studio/chart_studio/api/v2/dashboards.py b/packages/python/chart-studio/chart_studio/api/v2/dashboards.py index 1855f1f9287..37f6ec445fb 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/dashboards.py +++ b/packages/python/chart-studio/chart_studio/api/v2/dashboards.py @@ -4,7 +4,7 @@ Partially complete at the moment. Only being used by plotly.plotly.dashboard_ops. """ -from __future__ import absolute_import + from chart_studio.api.v2.utils import build_url, request diff --git a/packages/python/chart-studio/chart_studio/api/v2/files.py b/packages/python/chart-studio/chart_studio/api/v2/files.py index 9ed248a23df..fdc1a1fbc9e 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/files.py +++ b/packages/python/chart-studio/chart_studio/api/v2/files.py @@ -1,5 +1,5 @@ """Interface to Plotly's /v2/files endpoints.""" -from __future__ import absolute_import + from chart_studio.api.v2.utils import build_url, make_params, request diff --git a/packages/python/chart-studio/chart_studio/api/v2/folders.py b/packages/python/chart-studio/chart_studio/api/v2/folders.py index 4ba239b9909..e9f767ed341 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/folders.py +++ b/packages/python/chart-studio/chart_studio/api/v2/folders.py @@ -1,5 +1,5 @@ """Interface to Plotly's /v2/folders endpoints.""" -from __future__ import absolute_import + from chart_studio.api.v2.utils import build_url, make_params, request diff --git a/packages/python/chart-studio/chart_studio/api/v2/grids.py b/packages/python/chart-studio/chart_studio/api/v2/grids.py index 505829d942a..2c7246b8a50 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/grids.py +++ b/packages/python/chart-studio/chart_studio/api/v2/grids.py @@ -1,5 +1,5 @@ """Interface to Plotly's /v2/grids endpoints.""" -from __future__ import absolute_import + from chart_studio.api.v2.utils import build_url, make_params, request diff --git a/packages/python/chart-studio/chart_studio/api/v2/images.py b/packages/python/chart-studio/chart_studio/api/v2/images.py index 5cca9bc4ba5..86a37557558 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/images.py +++ b/packages/python/chart-studio/chart_studio/api/v2/images.py @@ -1,5 +1,5 @@ """Interface to Plotly's /v2/images endpoints.""" -from __future__ import absolute_import + from chart_studio.api.v2.utils import build_url, request diff --git a/packages/python/chart-studio/chart_studio/api/v2/plot_schema.py b/packages/python/chart-studio/chart_studio/api/v2/plot_schema.py index e8a0e92f72e..d76fe557b22 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/plot_schema.py +++ b/packages/python/chart-studio/chart_studio/api/v2/plot_schema.py @@ -1,5 +1,5 @@ """Interface to Plotly's /v2/plot-schema endpoints.""" -from __future__ import absolute_import + from chart_studio.api.v2.utils import build_url, make_params, request diff --git a/packages/python/chart-studio/chart_studio/api/v2/plots.py b/packages/python/chart-studio/chart_studio/api/v2/plots.py index 07e906affd4..ffb400caaf0 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/plots.py +++ b/packages/python/chart-studio/chart_studio/api/v2/plots.py @@ -1,5 +1,5 @@ """Interface to Plotly's /v2/plots endpoints.""" -from __future__ import absolute_import + from chart_studio.api.v2.utils import build_url, make_params, request diff --git a/packages/python/chart-studio/chart_studio/api/v2/spectacle_presentations.py b/packages/python/chart-studio/chart_studio/api/v2/spectacle_presentations.py index eb5df977356..4f5b073e230 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/spectacle_presentations.py +++ b/packages/python/chart-studio/chart_studio/api/v2/spectacle_presentations.py @@ -1,7 +1,7 @@ """ Interface to Plotly's /v2/spectacle-presentations endpoint. """ -from __future__ import absolute_import + from chart_studio.api.v2.utils import build_url, request diff --git a/packages/python/chart-studio/chart_studio/api/v2/users.py b/packages/python/chart-studio/chart_studio/api/v2/users.py index ec5601fd13c..4e1ecae639d 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/users.py +++ b/packages/python/chart-studio/chart_studio/api/v2/users.py @@ -1,5 +1,5 @@ """Interface to Plotly's /v2/files endpoints.""" -from __future__ import absolute_import + from chart_studio.api.v2.utils import build_url, request diff --git a/packages/python/chart-studio/chart_studio/api/v2/utils.py b/packages/python/chart-studio/chart_studio/api/v2/utils.py index 4c022957293..e80a732c836 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/utils.py +++ b/packages/python/chart-studio/chart_studio/api/v2/utils.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - import requests import json as _json from requests.exceptions import RequestException diff --git a/packages/python/chart-studio/chart_studio/config.py b/packages/python/chart-studio/chart_studio/config.py index 5cb2b30ad48..dd67223e4ba 100644 --- a/packages/python/chart-studio/chart_studio/config.py +++ b/packages/python/chart-studio/chart_studio/config.py @@ -4,7 +4,7 @@ This is promoted to its own module to simplify imports. """ -from __future__ import absolute_import + from chart_studio import session, tools diff --git a/packages/python/chart-studio/chart_studio/exceptions.py b/packages/python/chart-studio/chart_studio/exceptions.py index 675edff9103..4fb062de8fb 100644 --- a/packages/python/chart-studio/chart_studio/exceptions.py +++ b/packages/python/chart-studio/chart_studio/exceptions.py @@ -5,7 +5,7 @@ A module that contains plotly's exception hierarchy. """ -from __future__ import absolute_import + from chart_studio.api.utils import to_native_utf8_string diff --git a/packages/python/chart-studio/chart_studio/files.py b/packages/python/chart-studio/chart_studio/files.py index 453c18b6f8c..6e61613aff4 100644 --- a/packages/python/chart-studio/chart_studio/files.py +++ b/packages/python/chart-studio/chart_studio/files.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - import os # file structure diff --git a/packages/python/chart-studio/chart_studio/grid_objs/__init__.py b/packages/python/chart-studio/chart_studio/grid_objs/__init__.py index ae484f25e17..4e9479104ea 100644 --- a/packages/python/chart-studio/chart_studio/grid_objs/__init__.py +++ b/packages/python/chart-studio/chart_studio/grid_objs/__init__.py @@ -3,6 +3,6 @@ ========= """ -from __future__ import absolute_import + from chart_studio.grid_objs.grid_objs import Grid, Column diff --git a/packages/python/chart-studio/chart_studio/grid_objs/grid_objs.py b/packages/python/chart-studio/chart_studio/grid_objs/grid_objs.py index e8ebe03317b..8ca558dfb88 100644 --- a/packages/python/chart-studio/chart_studio/grid_objs/grid_objs.py +++ b/packages/python/chart-studio/chart_studio/grid_objs/grid_objs.py @@ -3,7 +3,7 @@ ========= """ -from __future__ import absolute_import + import _plotly_utils.exceptions diff --git a/packages/python/chart-studio/chart_studio/plotly/plotly.py b/packages/python/chart-studio/chart_studio/plotly/plotly.py index 589b7aa1c85..915de243ca4 100644 --- a/packages/python/chart-studio/chart_studio/plotly/plotly.py +++ b/packages/python/chart-studio/chart_studio/plotly/plotly.py @@ -14,7 +14,7 @@ 4. update plot_options with kwargs! """ -from __future__ import absolute_import + import base64 import copy diff --git a/packages/python/chart-studio/chart_studio/session.py b/packages/python/chart-studio/chart_studio/session.py index 9f7fccd04d2..1afe4e334a2 100644 --- a/packages/python/chart-studio/chart_studio/session.py +++ b/packages/python/chart-studio/chart_studio/session.py @@ -5,7 +5,7 @@ which user they're signed in as, and plotting defaults. """ -from __future__ import absolute_import + import copy diff --git a/packages/python/chart-studio/chart_studio/tests/test_core/test_tools/test_configuration.py b/packages/python/chart-studio/chart_studio/tests/test_core/test_tools/test_configuration.py index 34e53cc4c66..a7296734e34 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_core/test_tools/test_configuration.py +++ b/packages/python/chart-studio/chart_studio/tests/test_core/test_tools/test_configuration.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - from unittest import TestCase from chart_studio.files import CONFIG_FILE, FILE_CONTENT diff --git a/packages/python/chart-studio/chart_studio/tests/test_core/test_tools/test_get_embed.py b/packages/python/chart-studio/chart_studio/tests/test_core/test_tools/test_get_embed.py index 6aedf87bb62..4e992361fe9 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_core/test_tools/test_get_embed.py +++ b/packages/python/chart-studio/chart_studio/tests/test_core/test_tools/test_get_embed.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - from unittest import TestCase import pytest diff --git a/packages/python/chart-studio/chart_studio/tests/test_optional/test_grid/test_grid.py b/packages/python/chart-studio/chart_studio/tests/test_optional/test_grid/test_grid.py index 5b55bf69cfe..856fa9575ef 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_optional/test_grid/test_grid.py +++ b/packages/python/chart-studio/chart_studio/tests/test_optional/test_grid/test_grid.py @@ -5,7 +5,7 @@ A module intended for use with Nose. """ -from __future__ import absolute_import + from unittest import TestCase diff --git a/packages/python/chart-studio/chart_studio/tests/test_optional/test_matplotlylib/test_plot_mpl.py b/packages/python/chart-studio/chart_studio/tests/test_optional/test_matplotlylib/test_plot_mpl.py index 8ca36145216..a68267cca94 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_optional/test_matplotlylib/test_plot_mpl.py +++ b/packages/python/chart-studio/chart_studio/tests/test_optional/test_matplotlylib/test_plot_mpl.py @@ -5,7 +5,6 @@ A module intended for use with Nose. """ -from __future__ import absolute_import import _plotly_utils.exceptions diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/__init__.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/__init__.py index 72d362744e4..ad6f5d45093 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/__init__.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/__init__.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - from requests import Response from chart_studio.session import sign_in diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_files.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_files.py index db18b190317..6f2a405229d 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_files.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_files.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - from chart_studio.api.v2 import files from chart_studio.tests.test_plot_ly.test_api import PlotlyApiTestCase diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_folders.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_folders.py index 22ce20b3974..85222f13cd3 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_folders.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_folders.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - from chart_studio.api.v2 import folders from chart_studio.tests.test_plot_ly.test_api import PlotlyApiTestCase diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_grids.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_grids.py index 3fdd588c5d4..1593f77fdd1 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_grids.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_grids.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - import json as _json from chart_studio.api.v2 import grids diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_images.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_images.py index e0dff23efb5..ed9370986f3 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_images.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_images.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - import json as _json from chart_studio.api.v2 import images diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_plot_schema.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_plot_schema.py index b52c4ece657..c110e837511 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_plot_schema.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_plot_schema.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - from chart_studio.api.v2 import plot_schema from chart_studio.tests.test_plot_ly.test_api import PlotlyApiTestCase diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_plots.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_plots.py index 7ed5f72fd7d..fb48bb8cd6d 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_plots.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_plots.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - from chart_studio.api.v2 import plots from chart_studio.tests.test_plot_ly.test_api import PlotlyApiTestCase diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_users.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_users.py index 2514221f8ea..a650bc79565 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_users.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_users.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - from chart_studio.api.v2 import users from chart_studio.tests.test_plot_ly.test_api import PlotlyApiTestCase diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_utils.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_utils.py index bed79b06114..80ae5547854 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_utils.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_utils.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - import json as _json from requests.exceptions import ConnectionError diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_dashboard/test_dashboard.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_dashboard/test_dashboard.py index ca6e0ecc7dc..bdf53b1925e 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_dashboard/test_dashboard.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_dashboard/test_dashboard.py @@ -5,7 +5,7 @@ A module intended for use with Nose. """ -from __future__ import absolute_import + from unittest import TestCase from _plotly_utils.exceptions import PlotlyError diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_get_figure/test_get_figure.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_get_figure/test_get_figure.py index 04816fed5d6..100f8be473b 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_get_figure/test_get_figure.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_get_figure/test_get_figure.py @@ -5,7 +5,7 @@ A module intended for use with Nose. """ -from __future__ import absolute_import + import _plotly_utils.exceptions from chart_studio import exceptions diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_grid/test_grid.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_grid/test_grid.py index 1bf6f06ec78..8da100312b2 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_grid/test_grid.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_grid/test_grid.py @@ -5,7 +5,7 @@ A module intended for use with Nose. """ -from __future__ import absolute_import + import random import string diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_image/test_image.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_image/test_image.py index 22cdc2450b5..a91fc74f279 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_image/test_image.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_image/test_image.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - import imghdr import tempfile import os diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_meta/test_meta.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_meta/test_meta.py index 777598c3060..a1d8ccf5b2f 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_meta/test_meta.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_meta/test_meta.py @@ -5,7 +5,7 @@ A module intended for use with Nose. """ -from __future__ import absolute_import + import random import string diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_plotly/test_credentials.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_plotly/test_credentials.py index 6659dbab6ff..0b9be00d592 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_plotly/test_credentials.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_plotly/test_credentials.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - import _plotly_utils.exceptions from chart_studio import plotly as py, exceptions import chart_studio.session as session diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_plotly/test_plot.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_plotly/test_plot.py index 2f828e42dca..1ec72b2847f 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_plotly/test_plot.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_plotly/test_plot.py @@ -5,7 +5,7 @@ A module intended for use with Nose. """ -from __future__ import absolute_import + import urllib diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_session/test_session.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_session/test_session.py index 081342f6034..02fe165df6a 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_session/test_session.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_session/test_session.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - from chart_studio.tests.utils import PlotlyTestCase from chart_studio import session diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_spectacle_presentation/test_spectacle_presentation.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_spectacle_presentation/test_spectacle_presentation.py index 921855d5c21..4b70516f4f2 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_spectacle_presentation/test_spectacle_presentation.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_spectacle_presentation/test_spectacle_presentation.py @@ -5,7 +5,7 @@ A module intended for use with Nose. """ -from __future__ import absolute_import + from unittest import TestCase from _plotly_utils.exceptions import PlotlyError diff --git a/packages/python/chart-studio/chart_studio/tools.py b/packages/python/chart-studio/chart_studio/tools.py index cc6546c9856..2ec8c8fe82d 100644 --- a/packages/python/chart-studio/chart_studio/tools.py +++ b/packages/python/chart-studio/chart_studio/tools.py @@ -7,7 +7,7 @@ Functions that USERS will possibly want access to. """ -from __future__ import absolute_import + import urllib import warnings diff --git a/packages/python/chart-studio/chart_studio/utils.py b/packages/python/chart-studio/chart_studio/utils.py index 62c747b1cb2..010591d1313 100644 --- a/packages/python/chart-studio/chart_studio/utils.py +++ b/packages/python/chart-studio/chart_studio/utils.py @@ -5,7 +5,7 @@ Low-level functionality NOT intended for users to EVER use. """ -from __future__ import absolute_import + import os.path import re