From d35c912aa62956d68ed3ea01f135e50e2f811ec0 Mon Sep 17 00:00:00 2001 From: arfy slowy Date: Thu, 15 Jul 2021 00:16:31 +0700 Subject: chore: code clean up (#1442) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/google-api-python-client/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [x] Ensure the tests and linter pass - [x] Code coverage does not decrease (if any source code was changed) - [x] Appropriate docs were updated (if necessary) Fixes #1441 🦕 --- describe.py | 152 +++++++++++++++++++++++++++++++++++------------------------- 1 file changed, 90 insertions(+), 62 deletions(-) (limited to 'describe.py') diff --git a/describe.py b/describe.py index b565872bd..49ae27451 100755 --- a/describe.py +++ b/describe.py @@ -24,7 +24,6 @@ from __future__ import print_function __author__ = "jcgregorio@google.com (Joe Gregorio)" -from collections import OrderedDict import argparse import collections import json @@ -36,14 +35,15 @@ import sys from googleapiclient.discovery import DISCOVERY_URI from googleapiclient.discovery import build from googleapiclient.discovery import build_from_document -from googleapiclient.discovery import UnknownApiNameOrVersion from googleapiclient.http import build_http -from googleapiclient.errors import HttpError import uritemplate DISCOVERY_DOC_DIR = ( - pathlib.Path(__file__).parent.resolve() / "googleapiclient" / "discovery_cache" / "documents" + pathlib.Path(__file__).parent.resolve() + / "googleapiclient" + / "discovery_cache" + / "documents" ) CSS = """