Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
Merge pull request #285 from dhermes/remove-old-run
Browse files Browse the repository at this point in the history
Removing old_run module.
  • Loading branch information
craigcitro committed Aug 26, 2015
2 parents f29c164 + 05ae342 commit b79d7d5
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 184 deletions.
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__ = '[email protected] (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().')

0 comments on commit b79d7d5

Please sign in to comment.