summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/index.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/source/index.rst b/doc/source/index.rst
index 0c09964..4bca0ae 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -2292,7 +2292,7 @@ Subclassing ``HTMLFormatter`` or ``XMLFormatter`` will give you even
more control over the output. For example, Beautiful Soup sorts the
attributes in every tag by default::
- attr_soup = BeautifulSoup('<p z="1" m="2" a="3"></p>')
+ attr_soup = BeautifulSoup(b'<p z="1" m="2" a="3"></p>')
print(attr_soup.p.encode())
# <p a="3" m="2" z="1"></p>