forked from nosamanuel/cottonmouth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use six module to support both py2 and py3. Add six as a dependency of cottonmouth.
- Loading branch information
1 parent
428a4b3
commit e83ee53
Showing
5 changed files
with
142 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,114 +1,116 @@ | ||
import six | ||
|
||
HTML_VOID_TAGS = [ | ||
u'area', | ||
u'base', | ||
u'br', | ||
u'col', | ||
u'command', | ||
u'embed', | ||
u'hr', | ||
u'img', | ||
u'input', | ||
u'keygen', | ||
u'link', | ||
u'meta', | ||
u'param', | ||
u'source', | ||
u'track', | ||
u'wbr', | ||
six.u('area'), | ||
six.u('base'), | ||
six.u('br'), | ||
six.u('col'), | ||
six.u('command'), | ||
six.u('embed'), | ||
six.u('hr'), | ||
six.u('img'), | ||
six.u('input'), | ||
six.u('keygen'), | ||
six.u('link'), | ||
six.u('meta'), | ||
six.u('param'), | ||
six.u('source'), | ||
six.u('track'), | ||
six.u('wbr'), | ||
] | ||
|
||
HTML_TAGS = [ | ||
u'a', | ||
u'address', | ||
u'applet', | ||
u'area', | ||
u'article', | ||
u'aside', | ||
u'b', | ||
u'base', | ||
u'basefont', | ||
u'bgsound', | ||
u'big', | ||
u'blockquote', | ||
u'body', | ||
u'br', | ||
u'button', | ||
u'caption', | ||
u'center', | ||
u'code', | ||
u'col', | ||
u'colgroup', | ||
u'command', | ||
u'dd', | ||
u'details', | ||
u'dir', | ||
u'div', | ||
u'dl', | ||
u'dt', | ||
u'em', | ||
u'embed', | ||
u'fieldset', | ||
u'figure', | ||
u'font', | ||
u'footer', | ||
u'form', | ||
u'frame', | ||
u'frameset', | ||
u'h1', | ||
u'h2', | ||
u'h3', | ||
u'h4', | ||
u'h5', | ||
u'h6', | ||
u'head', | ||
u'header', | ||
u'hr', | ||
u'html', | ||
u'i', | ||
u'iframe', | ||
u'image', | ||
u'img', | ||
u'input', | ||
u'isindex', | ||
u'li', | ||
u'link', | ||
u'listing', | ||
u'marquee', | ||
u'menu', | ||
u'meta', | ||
u'nav', | ||
u'nobr', | ||
u'noembed', | ||
u'noframes', | ||
u'noscript', | ||
u'object', | ||
u'ol', | ||
u'p', | ||
u'param', | ||
u'plaintext', | ||
u'pre', | ||
u's', | ||
u'script', | ||
u'section', | ||
u'select', | ||
u'small', | ||
u'source', | ||
u'strike', | ||
u'strong', | ||
u'style', | ||
u'table', | ||
u'tbody', | ||
u'td', | ||
u'textarea', | ||
u'tfoot', | ||
u'th', | ||
u'thead', | ||
u'title', | ||
u'tr', | ||
u'track', | ||
u'tt', | ||
u'u', | ||
u'ul', | ||
u'wbr', | ||
u'xmp', | ||
six.u('a'), | ||
six.u('address'), | ||
six.u('applet'), | ||
six.u('area'), | ||
six.u('article'), | ||
six.u('aside'), | ||
six.u('b'), | ||
six.u('base'), | ||
six.u('basefont'), | ||
six.u('bgsound'), | ||
six.u('big'), | ||
six.u('blockquote'), | ||
six.u('body'), | ||
six.u('br'), | ||
six.u('button'), | ||
six.u('caption'), | ||
six.u('center'), | ||
six.u('code'), | ||
six.u('col'), | ||
six.u('colgroup'), | ||
six.u('command'), | ||
six.u('dd'), | ||
six.u('details'), | ||
six.u('dir'), | ||
six.u('div'), | ||
six.u('dl'), | ||
six.u('dt'), | ||
six.u('em'), | ||
six.u('embed'), | ||
six.u('fieldset'), | ||
six.u('figure'), | ||
six.u('font'), | ||
six.u('footer'), | ||
six.u('form'), | ||
six.u('frame'), | ||
six.u('frameset'), | ||
six.u('h1'), | ||
six.u('h2'), | ||
six.u('h3'), | ||
six.u('h4'), | ||
six.u('h5'), | ||
six.u('h6'), | ||
six.u('head'), | ||
six.u('header'), | ||
six.u('hr'), | ||
six.u('html'), | ||
six.u('i'), | ||
six.u('iframe'), | ||
six.u('image'), | ||
six.u('img'), | ||
six.u('input'), | ||
six.u('isindex'), | ||
six.u('li'), | ||
six.u('link'), | ||
six.u('listing'), | ||
six.u('marquee'), | ||
six.u('menu'), | ||
six.u('meta'), | ||
six.u('nav'), | ||
six.u('nobr'), | ||
six.u('noembed'), | ||
six.u('noframes'), | ||
six.u('noscript'), | ||
six.u('object'), | ||
six.u('ol'), | ||
six.u('p'), | ||
six.u('param'), | ||
six.u('plaintext'), | ||
six.u('pre'), | ||
six.u('s'), | ||
six.u('script'), | ||
six.u('section'), | ||
six.u('select'), | ||
six.u('small'), | ||
six.u('source'), | ||
six.u('strike'), | ||
six.u('strong'), | ||
six.u('style'), | ||
six.u('table'), | ||
six.u('tbody'), | ||
six.u('td'), | ||
six.u('textarea'), | ||
six.u('tfoot'), | ||
six.u('th'), | ||
six.u('thead'), | ||
six.u('title'), | ||
six.u('tr'), | ||
six.u('track'), | ||
six.u('tt'), | ||
six.u('u'), | ||
six.u('ul'), | ||
six.u('wbr'), | ||
six.u('xmp'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.