Fix broken unicode

pull/2/head
ttffdd 2018-10-17 20:31:34 +03:00
parent ba5a8be181
commit 150049c79b
1 changed files with 2 additions and 2 deletions

View File

@ -103,9 +103,9 @@ def ip_enclosed_alphanumeric(ips, ip):
intab = "1234567890abcdefghijklmnopqrstuvwxyz" intab = "1234567890abcdefghijklmnopqrstuvwxyz"
if ip == "127.0.0.1": if ip == "127.0.0.1":
ips.add("ⓛⓞⓒⓐⓛⓣⓔⓢⓣ.ⓜⓔ") ips.add("ⓛⓞⒸⒶⓛⓣⒺⓢⓣ.ⓜⒺ")
outtab = "①②③④⑤⑥⑦⑧⑨⓪ⓐⓑⓒⓓⓔⓕⓖⓗⓘⓙⓚⓛⓜⓝⓞⓟⓠⓡⓢⓣⓤⓥⓦⓧⓨⓩ" outtab = "①②③④⑤⑥⑦⑧⑨⓪ⒶⒷⒸⒹⒺⒻⒼⒽⒾⒿⓀⓁⓂⓃⓄⓅⓆⓇⓈⓉⓊⓋⓌⓍⓎⓏ"
trantab = ip.maketrans(intab, outtab) trantab = ip.maketrans(intab, outtab)
ips.add( ip.translate(trantab) ) ips.add( ip.translate(trantab) )