remove tostring() from Browser
This commit is contained in:
parent
ae34c7b088
commit
d16a44ffbd
2 changed files with 3 additions and 9 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue