Skip to content

Commit

Permalink
docstring for HTML parser
Browse files Browse the repository at this point in the history
  • Loading branch information
lightstrike committed Dec 15, 2015
1 parent 7aac049 commit 73ed8ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Development Lead
Contributors
------------

None yet. Why not be the first?
* Will Plaehn <[email protected]>
8 changes: 7 additions & 1 deletion djeff/djeff.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ def reconstruct_attrs(attrs):

class DjeffParser(HTMLParser):
def __init__(self, convert_charrefs=True, *args, **kwargs):
HTMLParser.__init__(self)
"""
Explicitly set convert_charrefs to keep deprecation warnings at bay.
See:
https://docs.python.org/3/library/html.parser.html#html.parser.HTMLParser
"""
HTMLParser.__init__(self, convert_charrefs=convert_charrefs)
self.djhtml = ''

def handle_starttag(self, tag, attrs):
Expand Down

0 comments on commit 73ed8ab

Please sign in to comment.