Mercurial > hg > mercurial-source
changeset 14135:1618c4f6f15b
tests: use raw string for url tests of '\' handling
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sun, 01 May 2011 15:49:13 +0200 |
parents | 8468ec1109d1 |
children | 617483af1cc0 |
files | mercurial/util.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/util.py +++ b/mercurial/util.py @@ -1319,7 +1319,7 @@ return s class url(object): - """Reliable URL parser. + r"""Reliable URL parser. This parses URLs and provides attributes for the following components: @@ -1350,8 +1350,8 @@ <url scheme: 'bundle', path: 'foo'> >>> url('bundle://../foo') <url scheme: 'bundle', path: '../foo'> - >>> url('c:\\\\foo\\\\bar') - <url path: 'c:\\\\foo\\\\bar'> + >>> url(r'c:\foo\bar') + <url path: 'c:\\foo\\bar'> Authentication credentials: