Skip to content

Commit f8608f4

Browse files
authored
Fix warnings (#148)
* Fix warnings * Remove py27 support * Remove whitespace * Remove pypy2 support
1 parent ae3771c commit f8608f4

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
language: python
22
matrix:
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
1311
install:
1412
- pip install -e ".[test]"

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

1113
0.14.2 (2020-01-24)

setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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',

validators/email.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

validators/url.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@
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-\uffff0-9]-?)*[a-z\u00a1-\uffff0-9]+)"
72+
r"(?:(?:[a-z\u00a1-\uffff0-9]-?)*[a-z\u00a1-\uffff0-9]+)"
7373
# domain name
74-
u"(?:\.(?:[a-z\u00a1-\uffff0-9]-?)*[a-z\u00a1-\uffff0-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})?"

0 commit comments

Comments
 (0)