Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
edschofield committed Dec 14, 2014
2 parents dc4b2f1 + 76a2ad7 commit 3d17779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/bytes_object.rst
Expand Up @@ -47,7 +47,7 @@ behaviours to Python 3's :class:`bytes`::
b = bytes(b'ABCD')
assert list(b) == [65, 66, 67, 68]
assert repr(b) == "b'ABCD'"
assert b.split(b'b') == [b'A', b'CD']
assert b.split(b'B') == [b'A', b'CD']

Currently the easiest way to ensure identical behaviour of byte-strings
in a Py2/3 codebase is to wrap all byte-string literals ``b'...'`` in a
Expand Down

0 comments on commit 3d17779

Please sign in to comment.