Remove legacy support for pickled Credentials.
Reviewed in http://codereview.appspot.com/5323055/.
diff --git a/oauth2client/appengine.py b/oauth2client/appengine.py
index 3f2b727..1bc2aaa 100644
--- a/oauth2client/appengine.py
+++ b/oauth2client/appengine.py
@@ -75,7 +75,6 @@
a two legged flow, and therefore has all of the required information to
generate and refresh its own access tokens.
- AssertionFlowCredentials objects may be safely pickled and unpickled.
"""
def __init__(self, scope,
@@ -197,14 +196,10 @@
return None
if len(value) == 0:
return None
- credentials = None
try:
credentials = Credentials.new_from_json(value)
except ValueError:
- try:
- credentials = pickle.loads(value)
- except ValueError:
- credentials = None
+ credentials = None
return credentials
def validate(self, value):