Skip to content

Commit

Permalink
Python 3 compatibility (and python2 incapatibility)
Browse files Browse the repository at this point in the history
  • Loading branch information
niksite committed Jan 5, 2016
1 parent 0f1dbd4 commit a79b78d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Inspired by Sam Ruby's urlnorm.py: http://intertwingly.net/blog/2004/08/04/Urlno
Example:
```
$ pip install git+git://github.com/niksite/url-normalize.git
Collecting git+git://github.com/niksite/url-normalize.git
Cloning git://github.com/niksite/url-normalize.git to /tmp/pip-trXUik-build
Installing collected packages: url-normalize
Running setup.py install for url-normalize
Successfully installed url-normalize-1.2
Expand All @@ -31,6 +33,7 @@ Type "help", "copyright", "credits" or "license" for more information.
```

History:
* 05 Jan 2016: Python 3 compatibility
* 29 Dec 2015: PEP8, setup.py
* 10 Mar 2010: support for shebang (#!) urls
* 28 Feb 2010: using 'http' schema by default when appropriate
Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
],
)
4 changes: 2 additions & 2 deletions url_normalize/url_normalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit a79b78d

Please sign in to comment.