Merge "Accept alternative email addresses." am: 0b14739e0f am: 6dfe4bc16a

am: 7f11838211

Change-Id: Iec10445efd2039a60650a9c1a4be41039ea95d96
This commit is contained in:
Chih-Hung Hsieh 2017-09-07 22:42:09 +00:00 committed by android-build-merger
commit 32031f6aa4

View file

@ -34,8 +34,8 @@ def find_address(address):
+ urllib.quote(address))
echo('Checking email address: ' + address)
result = urllib2.urlopen(request).read()
expected = '"email": "' + address + '"'
checked_addresses[address] = (result.find(expected) >= 0)
checked_addresses[address] = (
result.find('"email":') >= 0 and result.find('"_account_id":') >= 0)
return checked_addresses[address]