From 1a3a2bd6164dfb82cdee6b67da59c7d5f0144dad Mon Sep 17 00:00:00 2001 From: Adam Coddington Date: Wed, 13 May 2015 22:01:05 -0700 Subject: [PATCH] PEP-8 naming for 'newKBCookie.' --- pyicloud/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyicloud/base.py b/pyicloud/base.py index 89625aa..d010fd0 100644 --- a/pyicloud/base.py +++ b/pyicloud/base.py @@ -140,12 +140,12 @@ class PyiCloudService(object): raise PyiCloudFailedLoginException(msg) # Pull X-APPLE-WEB-KB cookie from cookies - NewWebKBCookie = next(({key:val} for key, val in req.cookies.items() if 'X-APPLE-WEB-KB' in key), None) + newWebKBCookie = next(({key:val} for key, val in req.cookies.items() if 'X-APPLE-WEB-KB' in key), None) # Check if cookie changed - if NewWebKBCookie and NewWebKBCookie != webKBCookie: + if newWebKBCookie and newWebKBCookie != webKBCookie: # Save the cookie in a pickle file with open(cookiefile, 'wb') as f: - pickle.dump(NewWebKBCookie, f) + pickle.dump(newWebKBCookie, f) self.refresh_validate()