diff options
| author | Leonard Richardson <leonardr@segfault.org> | 2020-05-17 13:58:15 -0400 |
|---|---|---|
| committer | Leonard Richardson <leonardr@segfault.org> | 2020-05-17 13:58:15 -0400 |
| commit | 8ddf0953746cb25cd900038067ee5a469940e972 (patch) | |
| tree | 851985846258032d58df53192514a87a3aeda014 /bs4/element.py | |
| parent | 56d128279162d3a5696cfba767891c843393e372 (diff) | |
Switch entirely to Python 3-style print statements, even in Python 2.
Diffstat (limited to 'bs4/element.py')
| -rw-r--r-- | bs4/element.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bs4/element.py b/bs4/element.py index 4947be9..130dfa9 100644 --- a/bs4/element.py +++ b/bs4/element.py @@ -1432,7 +1432,7 @@ class Tag(PageElement): def __getattr__(self, tag): """Calling tag.subtag is the same as calling tag.find(name="subtag")""" - #print "Getattr %s.%s" % (self.__class__, tag) + #print("Getattr %s.%s" % (self.__class__, tag)) if len(tag) > 3 and tag.endswith('Tag'): # BS3: soup.aTag -> "soup.find("a") tag_name = tag[:-3] @@ -2035,7 +2035,7 @@ class SoupStrainer(object): :param markup: A PageElement or a list of them. """ - # print 'looking for %s in %s' % (self, markup) + # print('looking for %s in %s' % (self, markup)) found = None # If given a list of items, scan it for a text element that # matches. @@ -2061,7 +2061,7 @@ class SoupStrainer(object): return found def _matches(self, markup, match_against, already_tried=None): - # print u"Matching %s against %s" % (markup, match_against) + # print(u"Matching %s against %s" % (markup, match_against)) result = False if isinstance(markup, list) or isinstance(markup, tuple): # This should only happen when searching a multi-valued attribute |
