Browse Source

Remove unused method unknown_decl

The function is empty, same as the parent class's implementation. Just
use inheritance rather than re-defining it.
pull/254/head
Jon Dufresne 9 months ago
parent
commit
0fbb8343d6
2 changed files with 0 additions and 5 deletions
  1. 0
    1
      docs/how_it_works.md
  2. 0
    4
      html2text/__init__.py

+ 0
- 1
docs/how_it_works.md View File

@@ -129,7 +129,6 @@ The class defines methods:
- soft_br
- o
- handle_data
- unknown_decl
- charref
- entityref
- google_nest_count

+ 0
- 4
html2text/__init__.py View File

@@ -835,10 +835,6 @@ class HTML2Text(HTMLParser.HTMLParser):
self.preceding_data = data
self.o(data, 1)

def unknown_decl(self, data): # pragma: no cover
# TODO: what is this doing here?
pass

def charref(self, name):
if name[0] in ['x', 'X']:
c = int(name[1:], 16)

Loading…
Cancel
Save