diff mercurial/util.py @ 34152:a8994d08e4a2

doctest: use print_function and convert bytes to unicode where needed
author Yuya Nishihara <yuya@tcha.org>
date Sun, 03 Sep 2017 14:56:31 +0900
parents d4d4d11bac77
children be00af4a1ac5
line wrap: on
line diff
--- a/mercurial/util.py	Sun Sep 03 15:47:17 2017 +0900
+++ b/mercurial/util.py	Sun Sep 03 14:56:31 2017 +0900
@@ -13,7 +13,7 @@
 hide platform-specific details from the core.
 """
 
-from __future__ import absolute_import
+from __future__ import absolute_import, print_function
 
 import abc
 import bz2
@@ -2836,9 +2836,9 @@
         'file:///tmp/foo/bar'
         >>> bytes(url(b'file:///c:/tmp/foo/bar'))
         'file:///c:/tmp/foo/bar'
-        >>> print url(br'bundle:foo\bar')
+        >>> print(url(br'bundle:foo\bar'))
         bundle:foo\bar
-        >>> print url(br'file:///D:\data\hg')
+        >>> print(url(br'file:///D:\data\hg'))
         file:///D:\data\hg
         """
         if self._localpath: