Permalink
Browse files

Adapted to Python 3

  • Loading branch information...
1 parent 7072c16 commit 9f3e1ecbe224ffd4c7dd6a818f9d620d81f2330d @skarcha committed Sep 26, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 decode_html_entities.py
View
@@ -1,9 +1,9 @@
-import sublime, sublime_plugin, HTMLParser
+import sublime, sublime_plugin, html.parser
class DecodeHtmlEntitiesCommand(sublime_plugin.TextCommand):
def run(self, edit):
- h = HTMLParser.HTMLParser()
+ h = html.parser.HTMLParser()
for region in self.view.sel():
content = h.unescape(self.view.substr(region))
- self.view.replace(edit, region, content)
+ self.view.replace(edit, region, content)

0 comments on commit 9f3e1ec

Please sign in to comment.