mirror of https://github.com/zulip/zulip.git
Remove force_text() in list_of_tlds().
This commit is contained in:
parent
da2744812f
commit
585829f665
|
@ -115,7 +115,7 @@ def list_of_tlds():
|
|||
|
||||
# tlds-alpha-by-domain.txt comes from http://data.iana.org/TLD/tlds-alpha-by-domain.txt
|
||||
tlds_file = os.path.join(os.path.dirname(__file__), 'tlds-alpha-by-domain.txt')
|
||||
tlds = [force_text(tld).lower().strip() for tld in open(tlds_file, 'r')
|
||||
tlds = [tld.lower().strip() for tld in open(tlds_file, 'r')
|
||||
if tld not in blacklist and not tld[0].startswith('#')]
|
||||
tlds.sort(key=len, reverse=True)
|
||||
return tlds
|
||||
|
|
Loading…
Reference in New Issue