diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-21 17:52:09 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-21 17:52:09 -0500 |
commit | 76bda491e74590c000fc2b15e187fac5a1b599f6 (patch) | |
tree | fb5c145567e730450b9c602ed0585ca1856110f6 | |
parent | b7177cf9cb72ecf02902e4cf58a8d78a662c1dc4 (diff) |
Removed useless code.
-rw-r--r-- | beautifulsoup/dammit.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/beautifulsoup/dammit.py b/beautifulsoup/dammit.py index 0d3ebd0..67bec17 100644 --- a/beautifulsoup/dammit.py +++ b/beautifulsoup/dammit.py @@ -56,15 +56,6 @@ class EntitySubstitution(object): "&(?!#\d+;|#x[0-9a-fA-F]+;|\w+;)" ")") - @classmethod - def _initialize_lookup(cls): - if cls.CHARACTER_TO_HTML_ENTITY is not None: - return - - def __init__(self): - # Initialize the class variables if not already initialized - self._initialize_lookup() - def _substitute_html_entity(self, matchobj): entity = self.CHARACTER_TO_HTML_ENTITY.get(matchobj.group(0)) return "&%s;" % entity |