File tree Expand file tree Collapse file tree 5 files changed +6
-8
lines changed
Expand file tree Collapse file tree 5 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 11language : python
22matrix :
33 include :
4- - python : 2.7
54 - python : 3.4
65 - python : 3.5
76 - python : 3.6
87 - python : 3.7
98 dist : xenial
109 sudo : true
11- - python : pypy
1210 - python : pypy3
1311install :
1412 - pip install -e ".[test]"
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ Changelog
66
77- Handle None values gracefully in domain validator (#144, pull request courtesy reahaas)
88- Local part of the email address should be less or equal than 64 bytes (#147, pull request courtesy mondeja)
9+ - Removed py27 support
10+ - Removed pypy2 support
911
1012
11130.14.2 (2020-01-24)
Original file line number Diff line number Diff line change @@ -59,8 +59,6 @@ def get_version():
5959 'License :: OSI Approved :: MIT License' ,
6060 'Operating System :: OS Independent' ,
6161 'Programming Language :: Python' ,
62- 'Programming Language :: Python :: 2' ,
63- 'Programming Language :: Python :: 2.7' ,
6462 'Programming Language :: Python :: 3' ,
6563 'Programming Language :: Python :: 3.4' ,
6664 'Programming Language :: Python :: 3.5' ,
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def email(value, whitelist=None):
6161
6262 if not user_regex .match (user_part ):
6363 return False
64-
64+
6565 if len (user_part .encode ("utf-8" )) > 64 :
6666 return False
6767
Original file line number Diff line number Diff line change 6969 r"(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])"
7070 r")\]|"
7171 # host name
72- u "(?:(?:[a-z\u00a1 -\uffff 0-9]-?)*[a-z\u00a1 -\uffff 0-9]+)"
72+ r "(?:(?:[a-z\u00a1-\uffff0-9]-?)*[a-z\u00a1-\uffff0-9]+)"
7373 # domain name
74- u "(?:\.(?:[a-z\u00a1 -\uffff 0-9]-?)*[a-z\u00a1 -\uffff 0-9]+)*"
74+ r "(?:\.(?:[a-z\u00a1-\uffff0-9]-?)*[a-z\u00a1-\uffff0-9]+)*"
7575 # TLD identifier
76- u "(?:\.(?:[a-z\u00a1 -\uffff ]{2,}))"
76+ r "(?:\.(?:[a-z\u00a1-\uffff]{2,}))"
7777 r")"
7878 # port number
7979 r"(?::\d{2,5})?"
You can’t perform that action at this time.
0 commit comments