summaryrefslogtreecommitdiff
path: root/addons/email_template/html2text.py
diff options
context:
space:
mode:
authorNumerigraphe - Lionel Sausin <ls@numerigraphe.fr>2012-03-05 19:40:03 +0100
committerNumerigraphe - Lionel Sausin <ls@numerigraphe.fr>2012-03-05 19:40:03 +0100
commit2d2a44dcf2e3b29e4fef4000792a064862967769 (patch)
tree3ead439725b24ab01fe5bd6e3784f9bffe12acdf /addons/email_template/html2text.py
parent520e2c680f927f16cfb97f543e2f73f7ab9ae7ac (diff)
[FIX] unmutable default in the remaining modules
[REF] coding style consistency lp bug: https://launchpad.net/bugs/525808 fixed bzr revid: ls@numerigraphe.fr-20120305184003-er00xtj9vtcw7gna
Diffstat (limited to 'addons/email_template/html2text.py')
-rw-r--r--[-rwxr-xr-x]addons/email_template/html2text.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/addons/email_template/html2text.py b/addons/email_template/html2text.py
index 745381850e3..9cb3a3fe5ac 100755..100644
--- a/addons/email_template/html2text.py
+++ b/addons/email_template/html2text.py
@@ -158,7 +158,7 @@ class _html2text(sgmllib.SGMLParser):
self.abbr_list = {} # stack of abbreviations to write later
self.baseurl = baseurl
- def outtextf(self, s):
+ def outtextf(self, s):
self.outtext += s
def close(self):
@@ -338,7 +338,7 @@ class _html2text(sgmllib.SGMLParser):
def pbr(self):
if self.p_p == 0: self.p_p = 1
- def p(self): self.p_p = 2
+ def p(self):
def o(self, data, puredata=0, force=0):
if self.abbr_data is not None: self.abbr_data += data
@@ -411,7 +411,8 @@ class _html2text(sgmllib.SGMLParser):
if r'\/script>' in data: self.quiet -= 1
self.o(data, 1)
- def unknown_decl(self, data): pass
+ def unknown_decl(self, data):
+ pass
def wrapwrite(text): sys.stdout.write(text.encode('utf8'))