Fix comment
This commit is contained in:
parent
0d7d9e590b
commit
ef4eba7cdd
4 changed files with 13 additions and 13 deletions
|
@ -263,7 +263,7 @@ class PyiCloudService(object):
|
|||
return request.json().get('devices')
|
||||
|
||||
def send_verification_code(self, device):
|
||||
""" Requests that a verification code is sent to the given device"""
|
||||
"""Requests that a verification code is sent to the given device."""
|
||||
data = json.dumps(device)
|
||||
request = self.session.post(
|
||||
'%s/sendVerificationCode' % self._setup_endpoint,
|
||||
|
@ -273,7 +273,7 @@ class PyiCloudService(object):
|
|||
return request.json().get('success', False)
|
||||
|
||||
def validate_verification_code(self, device, code):
|
||||
""" Verifies a verification code received on a trusted device"""
|
||||
"""Verifies a verification code received on a trusted device."""
|
||||
device.update({
|
||||
'verificationCode': code,
|
||||
'trustBrowser': True
|
||||
|
|
Loading…
Reference in a new issue