Skip to content

chore: remove unused imports #1790

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 6, 2022
Merged
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 apiclient/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Retain apiclient as an alias for googleapiclient."""

import googleapiclient
from googleapiclient import channel, discovery, errors, http, mimeparse, model

try:
Expand Down
2 changes: 1 addition & 1 deletion describe.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

import uritemplate

from googleapiclient.discovery import DISCOVERY_URI, build, build_from_document
from googleapiclient.discovery import DISCOVERY_URI, build_from_document
from googleapiclient.http import build_http

DISCOVERY_DOC_DIR = (
Expand Down
3 changes: 0 additions & 3 deletions googleapiclient/discovery_cache/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

from __future__ import absolute_import

import datetime
import logging
import os

Expand All @@ -37,8 +36,6 @@ def autodetect():
"""
if "APPENGINE_RUNTIME" in os.environ:
try:
from google.appengine.api import memcache

from . import appengine_memcache

return appengine_memcache.cache
Expand Down
1 change: 0 additions & 1 deletion googleapiclient/discovery_cache/file_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import logging
import os
import tempfile
import threading

try:
from oauth2client.contrib.locked_file import LockedFile
Expand Down
1 change: 0 additions & 1 deletion samples/adexchangeseller/get_all_alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

__author__ = '[email protected] (Sérgio Gomes)'

import argparse
import sys

from googleapiclient import sample_tools
Expand Down
1 change: 0 additions & 1 deletion samples/adexchangeseller/get_all_dimensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

__author__ = '[email protected] (Sérgio Gomes)'

import argparse
import sys

from googleapiclient import sample_tools
Expand Down
1 change: 0 additions & 1 deletion samples/adexchangeseller/get_all_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

__author__ = '[email protected] (Sérgio Gomes)'

import argparse
import sys

from googleapiclient import sample_tools
Expand Down
1 change: 0 additions & 1 deletion samples/adexchangeseller/get_all_preferred_deals.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

__author__ = '[email protected] (Sérgio Gomes)'

import argparse
import sys

from googleapiclient import sample_tools
Expand Down
1 change: 0 additions & 1 deletion samples/analytics/hello_analytics_api_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@

__author__ = '[email protected] (Nick Mihailovski)'

import argparse
import sys

from googleapiclient.errors import HttpError
Expand Down
1 change: 0 additions & 1 deletion samples/analytics/management_v3_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@

__author__ = '[email protected] (Nick Mihailovski)'

import argparse
import sys

from googleapiclient.errors import HttpError
Expand Down
2 changes: 0 additions & 2 deletions samples/appengine/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@


import httplib2
import logging
import os
import pickle

from googleapiclient import discovery
from oauth2client import client
Expand Down
4 changes: 0 additions & 4 deletions samples/storage_serviceaccount_appengine/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,10 @@
__author__ = '[email protected] (Marc Cohen)'

import httplib2
import logging
import os
import pickle
import re

from google.appengine.api import memcache
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from google.appengine.ext.webapp.util import run_wsgi_app
from oauth2client.contrib.appengine import AppAssertionCredentials

Expand Down
1 change: 0 additions & 1 deletion scripts/buildprbody.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from enum import IntEnum
import pathlib

from changesummary import ChangeType
Expand Down
2 changes: 0 additions & 2 deletions scripts/buildprbody_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@
__author__ = "[email protected] (Anthonios Partheniou)"

import pathlib
import shutil
import unittest

from buildprbody import BuildPrBody
from changesummary import ChangeType

SCRIPTS_DIR = pathlib.Path(__file__).parent.resolve()
CHANGE_SUMMARY_DIR = SCRIPTS_DIR / "test_resources" / "buildprbody_resources"
Expand Down
2 changes: 0 additions & 2 deletions tests/test_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
import google.api_core.exceptions
import google.auth.credentials
from google.auth.exceptions import MutualTLSChannelError
from google.auth.transport import mtls
import google_auth_httplib2
import httplib2
import mock
Expand Down Expand Up @@ -79,7 +78,6 @@
UnknownFileType,
)
from googleapiclient.http import (
BatchHttpRequest,
HttpMock,
HttpMockSequence,
MediaFileUpload,
Expand Down
1 change: 0 additions & 1 deletion tests/test_discovery_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import mock

from googleapiclient.discovery_cache import DISCOVERY_DOC_MAX_AGE
from googleapiclient.discovery_cache.base import Cache

try:
from googleapiclient.discovery_cache.file_cache import Cache as FileCache
Expand Down