summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2016-07-26 21:23:15 -0400
committerLeonard Richardson <leonardr@segfault.org>2016-07-26 21:23:15 -0400
commit7d913f2af7fa7565ea5e8cb42a183085b5397db3 (patch)
treeb97600f7d9109c136ccf1b69c7cb3669c9866fae
parent31af8e616d2440e04511f2f48916025e7d58afd6 (diff)
parente7065e4305f6952501a269728605c6f0473a12c5 (diff)
downloadbeautifulsoup4-7d913f2af7fa7565ea5e8cb42a183085b5397db3.tar.gz
Spelling cleanup contributed by Ville Skyttä.
-rw-r--r--AUTHORS.txt2
-rw-r--r--NEWS.txt6
-rw-r--r--bs4/__init__.py2
-rw-r--r--bs4/element.py2
-rw-r--r--bs4/tests/test_tree.py2
5 files changed, 7 insertions, 7 deletions
diff --git a/AUTHORS.txt b/AUTHORS.txt
index 2ac8fcc..ea6f785 100644
--- a/AUTHORS.txt
+++ b/AUTHORS.txt
@@ -16,7 +16,7 @@ support CSS selectors.
Sam Ruby helped with a lot of edge cases.
-Jonathan Ellis was awarded the prestigous Beau Potage D'Or for his
+Jonathan Ellis was awarded the prestigious Beau Potage D'Or for his
work in solving the nestable tags conundrum.
An incomplete list of people have contributed patches to Beautiful
diff --git a/NEWS.txt b/NEWS.txt
index d064a40..184a56e 100644
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -508,7 +508,7 @@ Bug fixes:
* Renamed Tag.nsprefix to Tag.prefix, for consistency with
NamespacedAttribute.
-* Fixed a test failure that occured on Python 3.x when chardet was
+* Fixed a test failure that occurred on Python 3.x when chardet was
installed.
* Made prettify() return Unicode by default, so it will look nice on
@@ -542,7 +542,7 @@ Bug fixes:
* Restored compatibility with Python 2.6.
-* The install process no longer installs docs or auxillary text files.
+* The install process no longer installs docs or auxiliary text files.
* It's now possible to deepcopy a BeautifulSoup object created with
Python's built-in HTML parser.
@@ -781,7 +781,7 @@ Added an import that makes BS work in Python 2.3.
Fixed a UnicodeDecodeError when unpickling documents that contain
non-ASCII characters.
-Fixed a TypeError that occured in some circumstances when a tag
+Fixed a TypeError that occurred in some circumstances when a tag
contained no text.
Jump through hoops to avoid the use of chardet, which can be extremely
diff --git a/bs4/__init__.py b/bs4/__init__.py
index 308428a..6eb3b04 100644
--- a/bs4/__init__.py
+++ b/bs4/__init__.py
@@ -448,7 +448,7 @@ class BeautifulSoup(Tag):
"""Push a start tag on to the stack.
If this method returns None, the tag was rejected by the
- SoupStrainer. You should proceed as if the tag had not occured
+ SoupStrainer. You should proceed as if the tag had not occurred
in the document. For instance, if this was a self-closing tag,
don't call handle_endtag.
"""
diff --git a/bs4/element.py b/bs4/element.py
index 5a3665e..b100d18 100644
--- a/bs4/element.py
+++ b/bs4/element.py
@@ -649,7 +649,7 @@ class PageElement(object):
return lambda el: el._attr_value_as_string(
attribute, '').startswith(value)
elif operator == '$':
- # string represenation of `attribute` ends with `value`
+ # string representation of `attribute` ends with `value`
return lambda el: el._attr_value_as_string(
attribute, '').endswith(value)
elif operator == '*':
diff --git a/bs4/tests/test_tree.py b/bs4/tests/test_tree.py
index 984b527..a4fe0b1 100644
--- a/bs4/tests/test_tree.py
+++ b/bs4/tests/test_tree.py
@@ -346,7 +346,7 @@ class TestFindAllByAttribute(TreeTest):
strainer = SoupStrainer(attrs={'id' : 'first'})
self.assertSelects(tree.find_all(strainer), ['Match.'])
- def test_find_all_with_missing_atribute(self):
+ def test_find_all_with_missing_attribute(self):
# You can pass in None as the value of an attribute to find_all.
# This will match tags that do not have that attribute set.
tree = self.soup("""<a id="1">ID present.</a>