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

Commit

Permalink
Dropping client_mod rename.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhermes committed Feb 24, 2016
1 parent 3ffa2cb commit 01dc3a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions oauth2client/contrib/_appengine_ndb.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

from google.appengine.ext import ndb

from oauth2client import client as client_mod
from oauth2client import client


NDB_KEY = ndb.Key
Expand Down Expand Up @@ -75,7 +75,7 @@ def _validate(self, value):
TypeError if the value is not an instance of Flow.
"""
_LOGGER.info('validate: Got type %s', type(value))
if value is not None and not isinstance(value, client_mod.Flow):
if value is not None and not isinstance(value, client.Flow):
raise TypeError('Property %s must be convertible to a flow '
'instance; received: %s.' % (self._name,
value))
Expand Down Expand Up @@ -103,7 +103,7 @@ def _validate(self, value):
TypeError if the value is not an instance of Credentials.
"""
_LOGGER.info('validate: Got type %s', type(value))
if value is not None and not isinstance(value, client_mod.Credentials):
if value is not None and not isinstance(value, client.Credentials):
raise TypeError('Property %s must be convertible to a '
'credentials instance; received: %s.' %
(self._name, value))
Expand Down Expand Up @@ -138,7 +138,7 @@ def _from_base_type(self, value):
return None
try:
# Uses the from_json method of the implied class of value
credentials = client_mod.Credentials.new_from_json(value)
credentials = client.Credentials.new_from_json(value)
except ValueError:
credentials = None
return credentials
Expand Down

0 comments on commit 01dc3a9

Please sign in to comment.