summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG2
-rw-r--r--README.md14
-rw-r--r--bs4/element.py2
3 files changed, 15 insertions, 3 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 5e3475d..b19a486 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -4,7 +4,7 @@
will, by default, record the position in the original document where
each tag was encountered. This includes line number (Tag.sourceline)
and position within a line (Tag.sourcepos). Based on code by Chris
- Mayo.
+ Mayo. [bug=1742921]
= 4.8.0 (20190720, "One Small Soup")
diff --git a/README.md b/README.md
index bcadd64..e7d1b56 100644
--- a/README.md
+++ b/README.md
@@ -51,6 +51,19 @@ To go beyond the basics, [comprehensive documentation is available](http://www.c
* [Bug tracker](https://bugs.launchpad.net/beautifulsoup/)
* [Complete changelog](https://bazaar.launchpad.net/~leonardr/beautifulsoup/bs4/view/head:/CHANGELOG)
+# Supporting the project
+
+If you use Beautiful Soup as part of your professional work, please consider a
+[Tidelift subscription](https://tidelift.com/subscription/pkg/pypi-beautifulsoup4?utm_source=pypi-beautifulsoup4&utm_medium=referral&utm_campaign=readme).
+This will support many of the free software projects your organization
+depends on, not just Beautiful Soup.
+
+If you use Beautiful Soup for personal projects, the best way to say
+thank you is to read
+[Tool Safety](https://www.crummy.com/software/BeautifulSoup/zine/), a zine I
+wrote about what Beautiful Soup has taught me about software
+development.
+
# Building the documentation
The bs4/doc/ directory contains full documentation in Sphinx
@@ -73,4 +86,3 @@ If you checked out the source tree, you should see a script in the
home directory called test-all-versions. This script will run the unit
tests under Python 2.7, then create a temporary Python 3 conversion of
the source and run the unit tests again under Python 3.
-
diff --git a/bs4/element.py b/bs4/element.py
index a610008..a57027e 100644
--- a/bs4/element.py
+++ b/bs4/element.py
@@ -741,7 +741,7 @@ class Tag(PageElement):
if ((not builder or builder.store_line_numbers)
and (sourceline is not None or sourcepos is not None)):
self.sourceline = sourceline
- self.sourcepos = sourcepos
+ self.sourcepos = sourcepos
if attrs is None:
attrs = {}
elif attrs: