remove tostring() from Browser

This commit is contained in:
Christophe Benz 2010-04-16 18:04:57 +02:00
commit d16a44ffbd
2 changed files with 3 additions and 9 deletions

View file

@ -249,12 +249,6 @@ class BaseBrowser(mechanize.Browser):
if self.__cookie:
self.__cookie.save()
def tostring(self, elem):
"""
Get HTML string from document.
"""
return self.__parser.dump(elem)
def str(self, s):
if isinstance(s, unicode):
s = s.encode('iso-8859-15', 'replace')