Skip to content

Commit

Permalink
chore: remove unused imports (#1790)
Browse files Browse the repository at this point in the history
* chore: remove unused imports

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
parthea and gcf-owl-bot[bot] committed May 6, 2022
1 parent ca654c4 commit 77d8a69
Show file tree
Hide file tree
Showing 16 changed files with 1 addition and 24 deletions.
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__ = 'sgomes@google.com (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__ = 'sgomes@google.com (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__ = 'sgomes@google.com (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__ = 'sgomes@google.com (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__ = 'api.nickm@gmail.com (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__ = 'api.nickm@gmail.com (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__ = 'marccohen@google.com (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__ = "partheniou@google.com (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

0 comments on commit 77d8a69

Please sign in to comment.