summaryrefslogtreecommitdiff
path: root/bs4
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2016-07-26 21:28:13 -0400
committerLeonard Richardson <leonardr@segfault.org>2016-07-26 21:28:13 -0400
commit1a0c82f030006f8a3e195e4fcd52c6751f5ae4db (patch)
tree499b2cec7310eb2857210cc1281b0fdbe49031a2 /bs4
parentd45fdd36c11ccc91f5ea81e2caf4ae71c47a4f33 (diff)
parent82e22ffc22ffaaf322a848a15aa5f84dbcb67d42 (diff)
Clarify that Beautiful Soup is no longer compatible with versions of Python pre-2.7. Contributed by Ville Skyttä.
Diffstat (limited to 'bs4')
-rw-r--r--bs4/__init__.py2
-rw-r--r--bs4/tests/test_soup.py3
2 files changed, 2 insertions, 3 deletions
diff --git a/bs4/__init__.py b/bs4/__init__.py
index 6eb3b04..9a6e73f 100644
--- a/bs4/__init__.py
+++ b/bs4/__init__.py
@@ -8,7 +8,7 @@ Beautiful Soup uses a pluggable XML or HTML parser to parse a
provides methods and Pythonic idioms that make it easy to navigate,
search, and modify the parse tree.
-Beautiful Soup works with Python 2.6 and up. It works better if lxml
+Beautiful Soup works with Python 2.7 and up. It works better if lxml
and/or html5lib is installed.
For more than you ever wanted to know about Beautiful Soup, see the
diff --git a/bs4/tests/test_soup.py b/bs4/tests/test_soup.py
index 780d288..f3e69ed 100644
--- a/bs4/tests/test_soup.py
+++ b/bs4/tests/test_soup.py
@@ -35,7 +35,6 @@ try:
except ImportError, e:
LXML_PRESENT = False
-PYTHON_2_PRE_2_7 = (sys.version_info < (2,7))
PYTHON_3_PRE_3_2 = (sys.version_info[0] == 3 and sys.version_info < (3,2))
class TestConstructor(SoupTest):
@@ -279,7 +278,7 @@ class TestEncodingConversion(SoupTest):
self.assertEqual(soup_from_unicode.encode('utf-8'), self.utf8_data)
@skipIf(
- PYTHON_2_PRE_2_7 or PYTHON_3_PRE_3_2,
+ PYTHON_3_PRE_3_2,
"Bad HTMLParser detected; skipping test of non-ASCII characters in attribute name.")
def test_attribute_name_containing_unicode_characters(self):
markup = u'<div><a \N{SNOWMAN}="snowman"></a></div>'