summaryrefslogtreecommitdiffstats
path: root/Lib/urllib
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2009-03-30 21:54:41 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2009-03-30 21:54:41 (GMT)
commiteaaec27b6ed3e01675af083fa9c6c1687c1b3847 (patch)
tree4d0ab26d6b63e05b06f2517c67ec8de3c41ea832 /Lib/urllib
parent7f6b4f86e305ec63441657c57f5f546d15114ca0 (diff)
downloadcpython-eaaec27b6ed3e01675af083fa9c6c1687c1b3847.zip
cpython-eaaec27b6ed3e01675af083fa9c6c1687c1b3847.tar.gz
cpython-eaaec27b6ed3e01675af083fa9c6c1687c1b3847.tar.bz2
Fix for Issue4962, issue4675.
Diffstat (limited to 'Lib/urllib')
-rw-r--r--Lib/urllib/parse.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/urllib/parse.py b/Lib/urllib/parse.py
index 5fd038e..9033683 100644
--- a/Lib/urllib/parse.py
+++ b/Lib/urllib/parse.py
@@ -19,7 +19,7 @@ uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'imap',
uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet',
'imap', 'wais', 'file', 'mms', 'https', 'shttp',
'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '',
- 'svn', 'svn+ssh', 'sftp']
+ 'svn', 'svn+ssh', 'sftp','nfs']
non_hierarchical = ['gopher', 'hdl', 'mailto', 'news',
'telnet', 'wais', 'imap', 'snews', 'sip', 'sips']
uses_params = ['ftp', 'hdl', 'prospero', 'http', 'imap',
@@ -645,7 +645,7 @@ def splitpasswd(user):
global _passwdprog
if _passwdprog is None:
import re
- _passwdprog = re.compile('^([^:]*):(.*)$')
+ _passwdprog = re.compile('^([^:]*):(.*)$',re.S)
match = _passwdprog.match(user)
if match: return match.group(1, 2)