Skip to content

Commit 17a0ab3

Browse files
committed
More delinting, re-ordering imports
1 parent 82495cc commit 17a0ab3

44 files changed

Lines changed: 171 additions & 104 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

admin_sdk/directory/quickstart.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414

1515
# [START admin_sdk_directory_quickstart]
1616
from __future__ import print_function
17+
1718
import os.path
18-
from googleapiclient.discovery import build
19-
from google_auth_oauthlib.flow import InstalledAppFlow
19+
2020
from google.auth.transport.requests import Request
2121
from google.oauth2.credentials import Credentials
22+
from google_auth_oauthlib.flow import InstalledAppFlow
23+
from googleapiclient.discovery import build
2224

2325
# If modifying these scopes, delete the file token.json.
2426
SCOPES = ['https://www.googleapis.com/auth/admin.directory.user']

admin_sdk/reports/quickstart.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414

1515
# [START admin_sdk_reports_quickstart]
1616
from __future__ import print_function
17+
1718
import os.path
18-
from googleapiclient.discovery import build
19-
from google_auth_oauthlib.flow import InstalledAppFlow
19+
2020
from google.auth.transport.requests import Request
2121
from google.oauth2.credentials import Credentials
22+
from google_auth_oauthlib.flow import InstalledAppFlow
23+
from googleapiclient.discovery import build
2224

2325
# If modifying these scopes, delete the file token.json.
2426
SCOPES = ['https://www.googleapis.com/auth/admin.reports.audit.readonly']

admin_sdk/reseller/quickstart.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414

1515
# [START admin_sdk_reseller_quickstart]
1616
from __future__ import print_function
17+
1718
import os.path
18-
from googleapiclient.discovery import build
19-
from google_auth_oauthlib.flow import InstalledAppFlow
19+
2020
from google.auth.transport.requests import Request
2121
from google.oauth2.credentials import Credentials
22+
from google_auth_oauthlib.flow import InstalledAppFlow
23+
from googleapiclient.discovery import build
2224

2325
# If modifying these scopes, delete the file token.json.
2426
SCOPES = ['https://www.googleapis.com/auth/apps.order']

apps_script/execute/execute.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
# [START apps_script_api_execute]
1616
from __future__ import print_function
17+
1718
from googleapiclient import errors
1819
from googleapiclient.discovery import build
1920
from oauth2client import file as oauth_file, client, tools

apps_script/quickstart/quickstart.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@
1919
project, and log the script's URL to the user.
2020
"""
2121
from __future__ import print_function
22+
2223
import os.path
23-
from googleapiclient import errors
24-
from googleapiclient.discovery import build
25-
from google_auth_oauthlib.flow import InstalledAppFlow
24+
2625
from google.auth.transport.requests import Request
2726
from google.oauth2.credentials import Credentials
27+
from google_auth_oauthlib.flow import InstalledAppFlow
28+
from googleapiclient import errors
29+
from googleapiclient.discovery import build
2830

2931
# If modifying these scopes, delete the file token.json.
3032
SCOPES = ['https://www.googleapis.com/auth/script.projects']

calendar/quickstart/quickstart.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414

1515
# [START calendar_quickstart]
1616
from __future__ import print_function
17+
1718
import datetime
1819
import os.path
19-
from googleapiclient.discovery import build
20-
from google_auth_oauthlib.flow import InstalledAppFlow
20+
2121
from google.auth.transport.requests import Request
2222
from google.oauth2.credentials import Credentials
23+
from google_auth_oauthlib.flow import InstalledAppFlow
24+
from googleapiclient.discovery import build
2325

2426
# If modifying these scopes, delete the file token.json.
2527
SCOPES = ['https://www.googleapis.com/auth/calendar.readonly']

classroom/quickstart/quickstart.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414

1515
# [START classroom_quickstart]
1616
from __future__ import print_function
17+
1718
import os.path
18-
from googleapiclient.discovery import build
19-
from google_auth_oauthlib.flow import InstalledAppFlow
19+
2020
from google.auth.transport.requests import Request
2121
from google.oauth2.credentials import Credentials
22+
from google_auth_oauthlib.flow import InstalledAppFlow
23+
from googleapiclient.discovery import build
2224

2325
# If modifying these scopes, delete the file token.json.
2426
SCOPES = ['https://www.googleapis.com/auth/classroom.courses.readonly']

classroom/snippets/base_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313
# limitations under the License.
1414

1515
from __future__ import print_function
16+
1617
import sys
1718
import unittest
19+
1820
import httplib2
1921
from googleapiclient import errors
20-
from oauth2client.client import GoogleCredentials
2122
from googleapiclient.discovery import build
23+
from oauth2client.client import GoogleCredentials
2224

2325
SCOPES = 'https://www.googleapis.com/auth/classroom.courses'
2426

classroom/snippets/classroom_snippets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414

1515
from __future__ import print_function
16+
1617
from googleapiclient import errors
1718

1819

classroom/snippets/test_snippets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# limitations under the License.
1515

1616
import unittest
17+
1718
from base_test import BaseTest
1819
from classroom_snippets import ClassroomSnippets
1920

0 commit comments

Comments
 (0)