Remove force_text() in list_of_tlds().

This commit is contained in:
Steve Howell 2017-11-04 09:52:38 -07:00 committed by Tim Abbott
parent da2744812f
commit 585829f665
1 changed files with 1 additions and 1 deletions

View File

@ -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