diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2013-06-03 11:38:23 -0400 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2013-06-03 11:38:23 -0400 |
commit | 37f53a378ddab1c67a54448bb87cb61b5e122a44 (patch) | |
tree | cf9fad56204fffdaaf1fa5c3982a0c627ee08057 /bs4/diagnose.py | |
parent | f5ff09d09ef6c60f5d5052fac25d4e128bdce34f (diff) |
A NavigableString object now has an immutable '.name' property whose
+ value is always None. This makes it easier to iterate over a mixed
+ list of tags and strings without having to check whether each
+ element is a tag or a string.
Diffstat (limited to 'bs4/diagnose.py')
-rw-r--r-- | bs4/diagnose.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/diagnose.py b/bs4/diagnose.py index 7c7ea7a..df72f65 100644 --- a/bs4/diagnose.py +++ b/bs4/diagnose.py @@ -202,5 +202,5 @@ def profile(num_elements=100000, parser="lxml"): if __name__ == '__main__': #diagnose(sys.stdin.read()) - profile(10000, parser="html5lib") + profile(100000, parser="lxml") # benchmark_parsers() |