Skip to content

Commit 77d8a69

Browse files
chore: remove unused imports (googleapis#1790)
* 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>
1 parent ca654c4 commit 77d8a69

File tree

16 files changed

+1
-24
lines changed

16 files changed

+1
-24
lines changed

apiclient/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Retain apiclient as an alias for googleapiclient."""
22

3-
import googleapiclient
43
from googleapiclient import channel, discovery, errors, http, mimeparse, model
54

65
try:

describe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
import uritemplate
3636

37-
from googleapiclient.discovery import DISCOVERY_URI, build, build_from_document
37+
from googleapiclient.discovery import DISCOVERY_URI, build_from_document
3838
from googleapiclient.http import build_http
3939

4040
DISCOVERY_DOC_DIR = (

googleapiclient/discovery_cache/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
from __future__ import absolute_import
1818

19-
import datetime
2019
import logging
2120
import os
2221

@@ -37,8 +36,6 @@ def autodetect():
3736
"""
3837
if "APPENGINE_RUNTIME" in os.environ:
3938
try:
40-
from google.appengine.api import memcache
41-
4239
from . import appengine_memcache
4340

4441
return appengine_memcache.cache

googleapiclient/discovery_cache/file_cache.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import logging
2828
import os
2929
import tempfile
30-
import threading
3130

3231
try:
3332
from oauth2client.contrib.locked_file import LockedFile

samples/adexchangeseller/get_all_alerts.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

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

25-
import argparse
2625
import sys
2726

2827
from googleapiclient import sample_tools

samples/adexchangeseller/get_all_dimensions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

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

25-
import argparse
2625
import sys
2726

2827
from googleapiclient import sample_tools

samples/adexchangeseller/get_all_metrics.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

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

25-
import argparse
2625
import sys
2726

2827
from googleapiclient import sample_tools

samples/adexchangeseller/get_all_preferred_deals.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

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

25-
import argparse
2625
import sys
2726

2827
from googleapiclient import sample_tools

samples/analytics/hello_analytics_api_v3.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444

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

47-
import argparse
4847
import sys
4948

5049
from googleapiclient.errors import HttpError

samples/analytics/management_v3_reference.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454

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

57-
import argparse
5857
import sys
5958

6059
from googleapiclient.errors import HttpError

samples/appengine/main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626

2727

2828
import httplib2
29-
import logging
3029
import os
31-
import pickle
3230

3331
from googleapiclient import discovery
3432
from oauth2client import client

samples/storage_serviceaccount_appengine/main.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,10 @@
3636
__author__ = '[email protected] (Marc Cohen)'
3737

3838
import httplib2
39-
import logging
40-
import os
41-
import pickle
4239
import re
4340

4441
from google.appengine.api import memcache
4542
from google.appengine.ext import webapp
46-
from google.appengine.ext.webapp import template
4743
from google.appengine.ext.webapp.util import run_wsgi_app
4844
from oauth2client.contrib.appengine import AppAssertionCredentials
4945

scripts/buildprbody.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from enum import IntEnum
1615
import pathlib
1716

1817
from changesummary import ChangeType

scripts/buildprbody_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@
1717
__author__ = "[email protected] (Anthonios Partheniou)"
1818

1919
import pathlib
20-
import shutil
2120
import unittest
2221

2322
from buildprbody import BuildPrBody
24-
from changesummary import ChangeType
2523

2624
SCRIPTS_DIR = pathlib.Path(__file__).parent.resolve()
2725
CHANGE_SUMMARY_DIR = SCRIPTS_DIR / "test_resources" / "buildprbody_resources"

tests/test_discovery.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
import google.api_core.exceptions
4141
import google.auth.credentials
4242
from google.auth.exceptions import MutualTLSChannelError
43-
from google.auth.transport import mtls
4443
import google_auth_httplib2
4544
import httplib2
4645
import mock
@@ -79,7 +78,6 @@
7978
UnknownFileType,
8079
)
8180
from googleapiclient.http import (
82-
BatchHttpRequest,
8381
HttpMock,
8482
HttpMockSequence,
8583
MediaFileUpload,

tests/test_discovery_cache.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import mock
2424

2525
from googleapiclient.discovery_cache import DISCOVERY_DOC_MAX_AGE
26-
from googleapiclient.discovery_cache.base import Cache
2726

2827
try:
2928
from googleapiclient.discovery_cache.file_cache import Cache as FileCache

0 commit comments

Comments
 (0)