changeset: 1249:77f13a977be6 user: jgraham@jgraham-desktop date: Wed Apr 29 17:17:24 2009 +0200 summary: Fix deprecation warning --- src/html5lib/inputstream.py +++ src/html5lib/inputstream.py @@ -444,8 +444,10 @@ """String-like object with an assosiated position and various extra methods If the position is ever greater than the string length then an exception is raised""" + def __new__(self, value): + return str.__new__(self, value) + def __init__(self, value): - str.__init__(self, value) self._position=-1 def __iter__(self):