diff options
author | Leonard Richardson <leonardr@segfault.org> | 2013-08-12 11:49:10 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2013-08-12 11:49:10 -0400 |
commit | b7fae1bd115492eb489359715ed74a742e664f46 (patch) | |
tree | e91713d1e2ff8ac8961d90c94f8869c2aeaa92db /bs4/__init__.py | |
parent | 2eef2140cb422406b68be05a913b88045ba34025 (diff) |
A little cleanup.
Diffstat (limited to 'bs4/__init__.py')
-rw-r--r-- | bs4/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bs4/__init__.py b/bs4/__init__.py index cd4a692..ace72f1 100644 --- a/bs4/__init__.py +++ b/bs4/__init__.py @@ -162,11 +162,11 @@ class BeautifulSoup(Tag): elif len(markup) <= 256: # Print out warnings for a couple beginner problems # involving passing non-markup to Beautiful Soup. - # Beautiful Soup will still parse the input as markup, + # Beautiful Soup will still parse the input as markup, # just in case that's what the user really wants. if os.path.exists(markup): warnings.warn( - '"%s" looks like a filename, not markup. You should probably open a filehandle and pass the filehandle into Beautiful Soup.' % markup) + '"%s" looks like a filename, not markup. You should probably open this file and pass the filehandle into Beautiful Soup.' % markup) if markup[:5] == "http:" or markup[:6] == "https:": # TODO: This is ugly but I couldn't get it to work in # Python 3 otherwise. @@ -182,7 +182,7 @@ class BeautifulSoup(Tag): try: self._feed() break - except ParserRejectedMarkup, e: + except ParserRejectedMarkup: pass # Clear out the markup and remove the builder's circular |