diff --git a/README.rst b/README.rst index 718f72e..586249b 100644 --- a/README.rst +++ b/README.rst @@ -28,6 +28,7 @@ The parser grants access to the following attributes: scheme authority | path | extension | | port filename + Tutorial ======== @@ -38,15 +39,17 @@ This example shows how you can set and get any of the URI attributes: >>> from miniuri import Uri >>> u = Uri( "http://www.foxhop.net/samsung/HL-T5087SA/red-LED-failure" ) >>> u.uri = "https://fox:pass@www.foxhop.net:81/path/filename.jpg?p=2#5" - >>> print u.uri - https://fox:pass@www.foxhop.net:81/path/filename.jpg?p=2#5 - >>> print u.hostname - www.foxhop.net - >>> print u.scheme - https + >>> print(u.uri) + 'https://fox:pass@www.foxhop.net:81/path/filename.jpg?p=2#5' + >>> print(u.hostname) + 'www.foxhop.net' + >>> print(u.scheme) + 'https' >>> u.username = 'max' - >>> print u - https://max:pass@www.foxhop.net:81/path/filename.jpg?p=2#5 + >>> print(u) + 'https://max:pass@www.foxhop.net:81/path/filename.jpg?p=2#5' + >>> print(u.relative_uri) + '/path/filename.jpg?p=2#5' How do I thank you? =================== diff --git a/setup.py b/setup.py index 6555ca2..55c65c0 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ from setuptools import ( setup( name='miniuri', - version='1.0.3', + version='1.0.4', long_description = open('README.rst').read(), description='miniuri: The Universal URI Parser', keywords = 'miniuri uri url parser',