Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Removing old_run module. #285

Merged
merged 1 commit into from
Aug 26, 2015
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
7 changes: 0 additions & 7 deletions docs/source/oauth2client.old_run.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/source/oauth2client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Submodules
oauth2client.keyring_storage
oauth2client.locked_file
oauth2client.multistore_file
oauth2client.old_run
oauth2client.service_account
oauth2client.tools
oauth2client.util
Expand Down
164 changes: 0 additions & 164 deletions oauth2client/old_run.py

This file was deleted.

13 changes: 1 addition & 12 deletions oauth2client/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@


__author__ = 'jcgregorio@google.com (Joe Gregorio)'
__all__ = ['argparser', 'run_flow', 'run', 'message_if_missing']
__all__ = ['argparser', 'run_flow', 'message_if_missing']

_CLIENT_SECRETS_MESSAGE = """WARNING: Please configure OAuth 2.0

Expand Down Expand Up @@ -242,14 +242,3 @@ def run_flow(flow, storage, flags, http=None):
def message_if_missing(filename):
"""Helpful message to display if the CLIENT_SECRETS file is missing."""
return _CLIENT_SECRETS_MESSAGE % filename


try:
from oauth2client.old_run import run
from oauth2client.old_run import FLAGS
except ImportError:
def run(*args, **kwargs):
raise NotImplementedError(
'The gflags library must be installed to use tools.run(). '
'Please install gflags or preferrably switch to using '
'tools.run_flow().')