equal
deleted
inserted
replaced
35 locale.setlocale(locale.LC_ALL, '') |
35 locale.setlocale(locale.LC_ALL, '') |
36 except locale.Error: |
36 except locale.Error: |
37 locale.setlocale(locale.LC_ALL, 'C') |
37 locale.setlocale(locale.LC_ALL, 'C') |
38 ENCODING = locale.nl_langinfo(locale.CODESET) |
38 ENCODING = locale.nl_langinfo(locale.CODESET) |
39 |
39 |
40 RE_ASCII_CHARS = r"^[\x20-\x7E]*$" |
|
41 RE_DOMAIN = r"^(?:[a-z0-9-]{1,63}\.){1,}[a-z]{2,6}$" |
40 RE_DOMAIN = r"^(?:[a-z0-9-]{1,63}\.){1,}[a-z]{2,6}$" |
42 RE_LOCALPART = r"[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]" |
41 RE_LOCALPART = r"[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]" |
43 |
42 |
44 |
43 |
45 # there may be many domain and e-mail address checks |
44 # there may be many domain and e-mail address checks |