From 636d7e0db164a50ebb5d38904d66cc5ede11f575 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 3 Mar 2018 10:30:50 -0500 Subject: [PATCH] updates --- _sources/index.rst.txt | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_sources/index.rst.txt b/_sources/index.rst.txt index 23bde53..ef794b3 100644 --- a/_sources/index.rst.txt +++ b/_sources/index.rst.txt @@ -149,7 +149,7 @@ You can also select only elements containing certian text: .. code-block:: pycon >>> r = session.get('http://python-requests.org/') - >>> r.html.find('a', containing=('kenneth',)) + >>> r.html.find('a', containing='kenneth') [, , , ] diff --git a/index.html b/index.html index 85c2c52..701f70c 100644 --- a/index.html +++ b/index.html @@ -128,7 +128,7 @@ simple and intuitive as possible.

You can also select only elements containing certian text:

>>> r = session.get('http://python-requests.org/')
->>> r.html.find('a', containing=('kenneth',))
+>>> r.html.find('a', containing='kenneth')
 [<Element 'a' href='http://kennethreitz.com/pages/open-projects.html'>, <Element 'a' href='http://kennethreitz.org/'>, <Element 'a' href='https://twitter.com/kennethreitz' class=('twitter-follow-button',) data-show-count='false'>, <Element 'a' class=('reference', 'internal') href='dev/contributing/#kenneth-reitz-s-code-style'>]