##// END OF EJS Templates
tests: use raw string for url tests of '\' handling
Mads Kiilerich -
r14146:1618c4f6 default
parent child Browse files
Show More
@@ -1319,7 +1319,7 b' def _urlunquote(s):'
1319 return s
1319 return s
1320
1320
1321 class url(object):
1321 class url(object):
1322 """Reliable URL parser.
1322 r"""Reliable URL parser.
1323
1323
1324 This parses URLs and provides attributes for the following
1324 This parses URLs and provides attributes for the following
1325 components:
1325 components:
@@ -1350,8 +1350,8 b' class url(object):'
1350 <url scheme: 'bundle', path: 'foo'>
1350 <url scheme: 'bundle', path: 'foo'>
1351 >>> url('bundle://../foo')
1351 >>> url('bundle://../foo')
1352 <url scheme: 'bundle', path: '../foo'>
1352 <url scheme: 'bundle', path: '../foo'>
1353 >>> url('c:\\\\foo\\\\bar')
1353 >>> url(r'c:\foo\bar')
1354 <url path: 'c:\\\\foo\\\\bar'>
1354 <url path: 'c:\\foo\\bar'>
1355
1355
1356 Authentication credentials:
1356 Authentication credentials:
1357
1357
General Comments 0
You need to be logged in to leave comments. Login now