diff options
author | Leonard Richardson <leonardr@segfault.org> | 2013-05-07 08:19:02 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2013-05-07 08:19:02 -0400 |
commit | 269157a8f40dfdac082f39befd69f170263d2ce1 (patch) | |
tree | 6de82a5e216da6dc16430a94e2ed411e920d372a /bs4/element.py | |
parent | c4ce22b415ab81ba0e3fb4a3fb28f4ce68dccbde (diff) |
Now that lxml's segfault on invalid doctype has been fixed, fix a
corresponding problem on the Beautiful Soup end that was previously
invisible. [bug=984936]
Diffstat (limited to 'bs4/element.py')
-rw-r--r-- | bs4/element.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/element.py b/bs4/element.py index d58da92..f38d9b4 100644 --- a/bs4/element.py +++ b/bs4/element.py @@ -779,7 +779,7 @@ class Doctype(PreformattedString): @classmethod def for_name_and_ids(cls, name, pub_id, system_id): - value = name + value = name or '' if pub_id is not None: value += ' PUBLIC "%s"' % pub_id if system_id is not None: |