Merge "Encode special characters in email addresses." am: c4a7ed3530
am: 1124a1bd01
am: f754ef73a5
Change-Id: I1eb192492a53263182eddce2f1ab86a015400cce
This commit is contained in:
commit
badde95384
|
@ -5,6 +5,7 @@
|
|||
import argparse
|
||||
import re
|
||||
import sys
|
||||
import urllib
|
||||
import urllib2
|
||||
|
||||
parser = argparse.ArgumentParser(description='Check OWNERS file syntax')
|
||||
|
@ -29,7 +30,8 @@ def echo(msg):
|
|||
|
||||
def find_address(address):
|
||||
if address not in checked_addresses:
|
||||
request = gerrit_server + '/accounts/?suggest&q=' + address
|
||||
request = (gerrit_server + '/accounts/?n=1&o=ALL_EMAILS&q=email:'
|
||||
+ urllib.quote(address))
|
||||
echo('Checking email address: ' + address)
|
||||
result = urllib2.urlopen(request).read()
|
||||
expected = '"email": "' + address + '"'
|
||||
|
|
Loading…
Reference in New Issue