-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python 3 compatibility (and python2 incapatibility)
- Loading branch information
Showing
3 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
setup( | ||
name="url-normalize", | ||
version="1.2", | ||
version="1.3", | ||
author="Nikolay Panov", | ||
author_email="[email protected]", | ||
description="URL normalization for Python", | ||
|
@@ -21,7 +21,6 @@ | |
"Topic :: Internet", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 2", | ||
"Programming Language :: Python :: 2.7" | ||
"Programming Language :: Python :: 3" | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
This fork author: Nikolay Panov (<[email protected]>) | ||
History: | ||
* 05 Jan 2016: Python 3 compatibility, please use version 1.2 on python 2 | ||
* 29 Dec 2015: PEP8, setup.py | ||
* 10 Mar 2010: support for shebang (#!) urls | ||
* 28 Feb 2010: using 'http' schema by default when appropriate | ||
|
@@ -30,11 +31,10 @@ | |
""" | ||
|
||
__license__ = "Python" | ||
__version__ = 1.2 | ||
__version__ = 1.3 | ||
|
||
import re | ||
import unicodedata | ||
import encodings.idna | ||
from urllib.parse import urlsplit, urlunsplit | ||
from urllib.parse import quote, unquote | ||
|
||
|