Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Remove usage of the unicode_literals import #120

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion datalab/bigquery/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements BigQuery HTTP API wrapper."""
from __future__ import absolute_import
from __future__ import unicode_literals
from past.builtins import basestring
from builtins import object

Expand Down
1 change: 0 additions & 1 deletion datalab/bigquery/_csv_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements CSV options for External Tables and Table loads from GCS."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import object


Expand Down
1 change: 0 additions & 1 deletion datalab/bigquery/_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements Dataset, and related Dataset BigQuery APIs."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import object

import datalab.context
Expand Down
1 change: 0 additions & 1 deletion datalab/bigquery/_federated_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements External Table functionality."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import object

from . import _csv_options
Expand Down
1 change: 0 additions & 1 deletion datalab/bigquery/_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements BigQuery Job functionality."""
from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import division

import datetime
Expand Down
1 change: 0 additions & 1 deletion datalab/bigquery/_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"""Implements BigQuery related data parsing helpers."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from builtins import zip
from builtins import str
from builtins import object
Expand Down
1 change: 0 additions & 1 deletion datalab/bigquery/_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements Query BigQuery API."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import object

import datalab.context
Expand Down
1 change: 0 additions & 1 deletion datalab/bigquery/_query_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements BigQuery query job functionality."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import str

from . import _job
Expand Down
1 change: 0 additions & 1 deletion datalab/bigquery/_query_results_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements BigQuery query job results table functionality."""
from __future__ import absolute_import
from __future__ import unicode_literals

from . import _table

Expand Down
1 change: 0 additions & 1 deletion datalab/bigquery/_query_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

"""Implements representation of BigQuery query job dry run results."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import object


Expand Down
1 change: 0 additions & 1 deletion datalab/bigquery/_sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"""Sampling for BigQuery."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from builtins import object


Expand Down
1 change: 0 additions & 1 deletion datalab/bigquery/_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements Table and View Schema APIs."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import str
from builtins import range
from past.builtins import basestring
Expand Down
1 change: 0 additions & 1 deletion datalab/bigquery/_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"""Implements Table, and related Table BigQuery APIs."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from builtins import str
from past.utils import old_div
from builtins import object
Expand Down
1 change: 0 additions & 1 deletion datalab/bigquery/_udf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Google Cloud Platform library - BigQuery UDF Functionality."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import str
from builtins import object

Expand Down
1 change: 0 additions & 1 deletion datalab/bigquery/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Useful common utility functions."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import str
from past.builtins import basestring

Expand Down
1 change: 0 additions & 1 deletion datalab/bigquery/_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements BigQuery Views."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import str
from builtins import object

Expand Down
1 change: 0 additions & 1 deletion datalab/bigquery/commands/_bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"""Google Cloud Platform library - BigQuery IPython Functionality."""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from builtins import zip
from builtins import str
from past.builtins import basestring
Expand Down
1 change: 0 additions & 1 deletion datalab/context/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements HTTP API wrapper."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import object

import datalab.utils
Expand Down
1 change: 0 additions & 1 deletion datalab/context/_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""Implements Context functionality."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import object

from . import _project
Expand Down
1 change: 0 additions & 1 deletion datalab/context/_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements Projects functionality."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import object

import datalab.utils
Expand Down
1 change: 0 additions & 1 deletion datalab/context/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
""" Support for getting gcloud credentials. """

from __future__ import absolute_import
from __future__ import unicode_literals
import oauth2client.client
import json
import os
Expand Down
1 change: 0 additions & 1 deletion datalab/context/commands/_projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"""Implements listing projects and setting default project."""

from __future__ import absolute_import
from __future__ import unicode_literals
try:
import IPython
import IPython.core.magic
Expand Down
1 change: 0 additions & 1 deletion datalab/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Google Cloud Platform library - Generic SQL Helpers."""
from __future__ import absolute_import
from __future__ import unicode_literals

from ._csv import Csv
from ._sql_module import SqlModule
Expand Down
1 change: 0 additions & 1 deletion datalab/data/_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements usefule CSV utilities."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import next
from builtins import str as newstr
from builtins import range
Expand Down
1 change: 0 additions & 1 deletion datalab/data/_sql_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Helper functions for %%sql modules."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import str
from past.builtins import basestring
from builtins import object
Expand Down
1 change: 0 additions & 1 deletion datalab/data/_sql_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements SQL statement helper functionality."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import str
from builtins import object
from past.builtins import basestring
Expand Down
1 change: 0 additions & 1 deletion datalab/data/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Google Cloud Platform library - Generic SQL Helpers."""
from __future__ import absolute_import
from __future__ import unicode_literals
import types


Expand Down
1 change: 0 additions & 1 deletion datalab/data/commands/_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"""Google Cloud Platform library - %%arguments IPython Cell Magic Functionality."""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from builtins import str
from past.builtins import basestring

Expand Down
1 change: 0 additions & 1 deletion datalab/stackdriver/monitoring/_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"""Groups for the Google Monitoring API."""

from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import object

import collections
Expand Down
1 change: 0 additions & 1 deletion datalab/stackdriver/monitoring/_query_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import object

import google.cloud.monitoring
Expand Down
1 change: 0 additions & 1 deletion datalab/storage/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements Storage HTTP API wrapper."""
from __future__ import absolute_import
from __future__ import unicode_literals
from future import standard_library
standard_library.install_aliases()
from builtins import object
Expand Down
1 change: 0 additions & 1 deletion datalab/storage/_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements Bucket-related Cloud Storage APIs."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import object

import dateutil.parser
Expand Down
1 change: 0 additions & 1 deletion datalab/storage/_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements Object-related Cloud Storage APIs."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import object

import dateutil.parser
Expand Down
1 change: 0 additions & 1 deletion datalab/storage/commands/_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Google Cloud Platform library - BigQuery IPython Functionality."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import str
from past.builtins import basestring

Expand Down
1 change: 0 additions & 1 deletion datalab/utils/_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Decorators for async methods and functions to dispatch on threads and support chained calls."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import object

import abc
Expand Down
1 change: 0 additions & 1 deletion datalab/utils/_gcp_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements GCP Job functionality."""
from __future__ import absolute_import
from __future__ import unicode_literals

import datalab.context
from . import _job
Expand Down
1 change: 0 additions & 1 deletion datalab/utils/_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements HTTP client helper functionality."""
from __future__ import absolute_import
from __future__ import unicode_literals
from future import standard_library
standard_library.install_aliases()
from builtins import str
Expand Down
1 change: 0 additions & 1 deletion datalab/utils/_iterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Iterator class for iterable cloud lists."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import object


Expand Down
1 change: 0 additions & 1 deletion datalab/utils/_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements Job functionality for async tasks."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import str
from builtins import object

Expand Down
1 change: 0 additions & 1 deletion datalab/utils/_json_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
""" JSON encoder that can handle Python datetime objects. """

from __future__ import absolute_import
from __future__ import unicode_literals
import datetime
import json

Expand Down
1 change: 0 additions & 1 deletion datalab/utils/_lambda_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements OS shell Job functionality."""
from __future__ import absolute_import
from __future__ import unicode_literals

from . import _async
from . import _job
Expand Down
1 change: 0 additions & 1 deletion datalab/utils/_lru_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""A simple LRU cache."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import str
from past.builtins import basestring
from builtins import object
Expand Down
1 change: 0 additions & 1 deletion datalab/utils/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"""Miscellaneous simple utility functions."""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from builtins import str

try:
Expand Down
1 change: 0 additions & 1 deletion datalab/utils/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# the License.

from __future__ import absolute_import
from __future__ import unicode_literals

# Support functions for magics and display help.
from ._commands import CommandParser
Expand Down
1 change: 0 additions & 1 deletion datalab/utils/commands/_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Google Cloud Platform library - Chart cell magic."""
from __future__ import absolute_import
from __future__ import unicode_literals

try:
import IPython
Expand Down
1 change: 0 additions & 1 deletion datalab/utils/commands/_chart_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"""Google Cloud Platform library - chart_data cell magic."""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals

try:
import IPython
Expand Down
1 change: 0 additions & 1 deletion datalab/utils/commands/_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"""Implementation of command parsing and handling within magics."""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals

try:
import IPython
Expand Down
1 change: 0 additions & 1 deletion datalab/utils/commands/_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Implements CSV file exploration"""
from __future__ import absolute_import
from __future__ import unicode_literals


try:
Expand Down
1 change: 0 additions & 1 deletion datalab/utils/commands/_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Google Cloud Platform library - Extension cell magic."""
from __future__ import absolute_import
from __future__ import unicode_literals

try:
import IPython
Expand Down
1 change: 0 additions & 1 deletion datalab/utils/commands/_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

"""Google Cloud Platform library - IPython HTML display Functionality."""
from __future__ import absolute_import
from __future__ import unicode_literals
from builtins import str
from builtins import range
from past.builtins import basestring
Expand Down
Loading