changeset 14147:617483af1cc0

test: test that backslash is preserved by the url class
author Mads Kiilerich <mads@kiilerich.com>
date Sun, 01 May 2011 15:49:13 +0200
parents 1618c4f6f15b
children cc9366a3751b
files mercurial/util.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py	Sun May 01 15:49:13 2011 +0200
+++ b/mercurial/util.py	Sun May 01 15:49:13 2011 +0200
@@ -1473,7 +1473,7 @@
         return '<url %s>' % ', '.join(attrs)
 
     def __str__(self):
-        """Join the URL's components back into a URL string.
+        r"""Join the URL's components back into a URL string.
 
         Examples:
 
@@ -1493,6 +1493,8 @@
         'bundle:../foo'
         >>> str(url('path'))
         'path'
+        >>> print url(r'bundle:foo\bar')
+        bundle:foo\bar
         """
         if self._localpath:
             s = self.path