Victor Stinner
536c1f1246
bpo-30500: urllib: Simplify splithost by calling into urlparse. ( #1849 ) ( #2289 )
...
The current regex based splitting produces a wrong result. For example::
http://abc#@def
Web browsers parse that URL as ``http://abc/#@def ``, that is, the host
is ``abc``, the path is ``/``, and the fragment is ``#@def``.
(cherry picked from commit 90e01e50ef
)
2017-06-20 15:37:24 +02:00
Senthil Kumaran
ed278448da
correct parse_qs and parse_qsl test case descriptions. ( #968 ) ( #997 )
...
(cherry picked from commit 257b980b31
)
2017-04-06 08:38:38 -07:00
Berker Peksag
f8479eeb34
Issue #25895 : Merge from 3.5
2016-09-16 14:45:15 +03:00
Berker Peksag
f676748a05
Issue #25895 : Enable WebSocket URL schemes in urllib.parse.urljoin
...
Patch by Gergely Imreh and Markus Holtermann.
2016-09-16 14:43:58 +03:00
Senthil Kumaran
4d4ac5bd02
merge 3.5
...
issue26775 - Improve test coverage for urllib.parse
Patch contributed by Luiz Poleto.
2016-04-16 07:34:24 -07:00
Senthil Kumaran
e38415e776
issue26775 - Improve test coverage for urllib.parse
...
Patch contributed by Luiz Poleto.
2016-04-16 07:33:15 -07:00
Robert Collins
dfa95c9a8f
Issue #20059 : urllib.parse raises ValueError on all invalid ports.
...
Patch by Martin Panter.
2015-08-10 09:53:30 +12:00
Berker Peksag
a7c781724f
Issue #23684 : Clarify the return value of the scheme attribute of ParseResult and SplitResult objects.
...
Patch by Martin Panter.
2015-06-25 23:39:26 +03:00
Berker Peksag
89584c97e4
Issue #23684 : Clarify the return value of the scheme attribute of ParseResult and SplitResult objects.
...
Patch by Martin Panter.
2015-06-25 23:38:48 +03:00
R David Murray
c17686f071
Issue #13866 : add *quote_via* argument to urlencode.
...
Patch by samwyse, completed by Arnon Yaari, and reviewed by
Martin Panter.
2015-05-17 20:44:50 -04:00
Berker Peksag
20416f7994
Issue #23703 : Fix a regression in urljoin() introduced in 901e4e52b20a.
...
Patch by Demian Brecht.
2015-04-16 02:31:14 +03:00
Serhiy Storchaka
1515450440
Issue #23411 : Added DefragResult, ParseResult, SplitResult, DefragResultBytes,
...
ParseResultBytes, and SplitResultBytes to urllib.parse.__all__.
Patch by Martin Panter.
2015-04-07 19:09:01 +03:00
Serhiy Storchaka
5e0fd95e3b
Added more tests for urllib.parse utility functions.
...
These functions are not documented but used in third-party code.
2015-03-02 16:33:08 +02:00
Serhiy Storchaka
9270be7662
Added more tests for urllib.parse utility functions.
...
These functions are not documented but used in third-party code.
2015-03-02 16:32:29 +02:00
Senthil Kumaran
a66e3885fb
Issue #22278 : Fix urljoin problem with relative urls, a regression observed
...
after changes to issue22118 were submitted.
Patch contributed by Demian Brecht and reviewed by Antoine Pitrou.
2014-09-22 15:49:16 +08:00
Antoine Pitrou
55ac5b3f7b
Issue #22118 : Switch urllib.parse to use RFC 3986 semantics for the resolution of relative URLs, rather than RFCs 1808 and 2396.
...
Patch by Demian Brecht.
2014-08-21 19:16:17 -04:00
Serhiy Storchaka
5d83d1a814
Issue #20270 : urllib.urlparse now supports empty ports.
2014-01-18 18:31:41 +02:00
Serhiy Storchaka
ff97b08d00
Issue #20270 : urllib.urlparse now supports empty ports.
2014-01-18 18:30:33 +02:00
Serhiy Storchaka
8f8ec92de8
Issue #19936 : Added executable bits or shebang lines to Python scripts which
...
requires them. Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface. Fixed
shebang lines in the unittestgui and checkpip scripts.
2014-01-16 17:33:23 +02:00
Serhiy Storchaka
b992a0e102
Issue #19936 : Added executable bits or shebang lines to Python scripts which
...
requires them. Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface. Fixed
shebang line to use python3 executable in the unittestgui script.
2014-01-16 17:15:49 +02:00
R David Murray
f516388de8
#17472 : add tests for a couple of untested methods in urllib.urlparse.
...
Original patch by Daniel Wozniak.
2013-03-21 20:56:51 -04:00
Senthil Kumaran
ed30199e78
Fix issue16713 - tel url parsing with params
2012-12-24 14:00:20 -08:00
Senthil Kumaran
2fc5a50809
Issue #14036 : return None when port in urlparse cross 65535
2012-05-24 21:56:17 +08:00
Ezio Melotti
6709b7d5d1
#14072 : Fix parsing of tel URIs in urlparse by making the check for ports stricter.
2012-05-19 17:15:19 +03:00
Senthil Kumaran
1be320ebdd
Issue9374 - Generic parsing of query and fragment portion of urls for any scheme
2012-05-19 08:12:00 +08:00
Georg Brandl
09a7c72cad
Merge from 3.1: Issue #13703 : add a way to randomize the hash values of basic types (str, bytes, datetime)
...
in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated.
The environment variable PYTHONHASHSEED and the new command line flag -R control this
behavior.
2012-02-20 21:31:46 +01:00
Ezio Melotti
e130a52d8a
Remove duplication.
2011-10-19 10:58:56 +03:00
Senthil Kumaran
7ce71f6496
change the redundant svn scheme urljoin test case to svn+ssh scheme.
2011-08-03 22:08:46 +08:00
Senthil Kumaran
2a157d2a3d
Fix closes issue12683 - urljoin to work with relative join of svn scheme.
2011-08-03 18:37:22 +08:00
Senthil Kumaran
de02a7194c
Fix closes issue12581 - Increase the urllib.parse test coverage. Patch by Petter Haggholm.
2011-07-23 18:27:45 +08:00
Senthil Kumaran
b4bd4af8c4
merge from 3.1
2011-04-15 18:21:26 +08:00
Senthil Kumaran
397eb4411a
Issue #11467 : Fix urlparse behavior when handling urls which contains scheme specific part only digits.
2011-04-15 18:20:24 +08:00
Victor Stinner
1d87deb605
test_urlparse: add tests for encoding and errors arguments
2011-01-14 13:05:19 +00:00
Senthil Kumaran
3396e8671d
Merged revisions 87329 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87329 | senthil.kumaran | 2010-12-17 12:48:45 +0800 (Fri, 17 Dec 2010) | 3 lines
Fix Issue9721 - urljoin behavior when the relative url starts with ';'
........
2010-12-17 04:54:43 +00:00
Senthil Kumaran
dca5b86233
Fix Issue9721 - urljoin behavior when the relative url starts with ';'
2010-12-17 04:48:45 +00:00
Ezio Melotti
ed3a7d2d60
#10273 : Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex.
2010-12-01 02:32:32 +00:00
Nick Coghlan
9fc443cf59
Issue 9873: the URL parsing functions now accept ASCII encoded byte sequences in addition to character strings
2010-11-30 15:48:08 +00:00
Senthil Kumaran
8801f7add2
Merged revisions 83701 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83701 | senthil.kumaran | 2010-08-04 10:20:44 +0530 (Wed, 04 Aug 2010) | 3 lines
Fix Issue754016 - urlparse goes wrong with IP:port without scheme
........
2010-08-04 04:53:07 +00:00
Senthil Kumaran
84c7d9f87b
Fix Issue754016 - urlparse goes wrong with IP:port without scheme
2010-08-04 04:50:44 +00:00
Senthil Kumaran
a6c03197fd
Merged revisions 82881 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r82881 | senthil.kumaran | 2010-07-14 15:51:22 +0530 (Wed, 14 Jul 2010) | 3 lines
Fix Issue5842 - Moving the tests out of urllib.parse module
........
2010-07-14 10:28:38 +00:00
Senthil Kumaran
aa69d4d00f
Fix Issue5842 - Moving the tests out of urllib.parse module
2010-07-14 10:21:22 +00:00
Senthil Kumaran
d4cd18847d
Merged revisions 81132 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r81132 | senthil.kumaran | 2010-05-13 09:07:23 +0530 (Thu, 13 May 2010) | 9 lines
Merged revisions 81130 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81130 | senthil.kumaran | 2010-05-13 08:55:21 +0530 (Thu, 13 May 2010) | 3 lines
Fix Issue8657 - adding git and git+ssh as know schemes.
........
................
2010-05-13 03:43:13 +00:00
Senthil Kumaran
ead169d311
Merged revisions 81130 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81130 | senthil.kumaran | 2010-05-13 08:55:21 +0530 (Thu, 13 May 2010) | 3 lines
Fix Issue8657 - adding git and git+ssh as know schemes.
........
2010-05-13 03:37:23 +00:00
Senthil Kumaran
06f29cd0ef
Merged revisions 80910 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r80910 | senthil.kumaran | 2010-05-07 09:49:23 +0530 (Fri, 07 May 2010) | 9 lines
Merged revisions 80908 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80908 | senthil.kumaran | 2010-05-07 09:37:29 +0530 (Fri, 07 May 2010) | 3 lines
Testsuite for RFC3986 based parsing scenario. Related Issue1462525.
........
................
2010-05-07 04:24:30 +00:00
Senthil Kumaran
dd3820f275
Merged revisions 80908 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80908 | senthil.kumaran | 2010-05-07 09:37:29 +0530 (Fri, 07 May 2010) | 3 lines
Testsuite for RFC3986 based parsing scenario. Related Issue1462525.
........
2010-05-07 04:19:23 +00:00
Senthil Kumaran
7a1e09f60c
Merged revisions 80362 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80362 | senthil.kumaran | 2010-04-22 17:40:13 +0530 (Thu, 22 Apr 2010) | 4 lines
Changed tests to only urlparse one, which was enough, addressed Ezio's comment
on Invalid url check statement and versionchanged string in docs.
........
2010-04-22 12:19:46 +00:00
Senthil Kumaran
2eaef05c47
Merged revisions 80277 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80277 | senthil.kumaran | 2010-04-21 02:07:59 +0530 (Wed, 21 Apr 2010) | 3 lines
Issue2987 - Added additional Invalid URL and changed the Invalid URL checking code for better.
........
2010-04-20 20:42:50 +00:00
Senthil Kumaran
a6023ca337
Reverting the previous checkin (80103). The feature should not have been merged to 3.1 maint.
2010-04-16 11:28:05 +00:00
Senthil Kumaran
2176ad5f30
Merged revisions 80102 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r80102 | senthil.kumaran | 2010-04-16 08:32:13 +0530 (Fri, 16 Apr 2010) | 9 lines
Merged revisions 80101 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80101 | senthil.kumaran | 2010-04-16 08:16:46 +0530 (Fri, 16 Apr 2010) | 3 lines
Fix issue2987: RFC2732 support for urlparse (IPv6 addresses)
........
................
2010-04-16 03:06:19 +00:00
Senthil Kumaran
ad02d239ff
Merged revisions 80101 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80101 | senthil.kumaran | 2010-04-16 08:16:46 +0530 (Fri, 16 Apr 2010) | 3 lines
Fix issue2987: RFC2732 support for urlparse (IPv6 addresses)
........
2010-04-16 03:02:13 +00:00