changeset 34131 | 0fa781320203 |
parent 28883 | 032c4c2f802a |
child 34371 | 635553ca6eb9 |
--- a/mercurial/byterange.py Thu Sep 07 22:36:54 2017 +0900 +++ b/mercurial/byterange.py Sun Sep 03 14:32:11 2017 +0900 @@ -91,7 +91,7 @@ Examples: # expose 10 bytes, starting at byte position 20, from # /etc/aliases. - >>> fo = RangeableFileObject(file('/etc/passwd', 'r'), (20,30)) + >>> fo = RangeableFileObject(file(b'/etc/passwd', b'r'), (20,30)) # seek seeks within the range (to position 23 in this case) >>> fo.seek(3) # tell tells where your at _within the range_ (position 3 in