summaryrefslogtreecommitdiff
path: root/addons/email_template/html2text.py
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2011-04-08 14:23:24 +0300
committerP. Christeas <p_christ@hol.gr>2011-04-08 14:23:24 +0300
commit9e44cd5bfe1e1fe30d0e1f98799fd7dc7a6dad6e (patch)
tree760cc33d2a4fb0c1f436fbf040df1814aff508df /addons/email_template/html2text.py
parenta0507fe0db74f5e72100cc866dd53dbe3736b90b (diff)
all: Fix execute permission and shebang at files
Non-standalone python scripts shall not have a shebang. Others will need to be executable. (cherry picked from commit 6ec513d17cafcdd235b4805363d3cd6daa494f2f) bzr revid: p_christ@hol.gr-20110408112324-nc781po7efhjye21
Diffstat (limited to 'addons/email_template/html2text.py')
-rwxr-xr-x[-rw-r--r--]addons/email_template/html2text.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/addons/email_template/html2text.py b/addons/email_template/html2text.py
index af7848fee2d..2479843777a 100644..100755
--- a/addons/email_template/html2text.py
+++ b/addons/email_template/html2text.py
@@ -444,11 +444,11 @@ if __name__ == "__main__":
encoding = 'utf8'
if len(sys.argv) > 2:
encoding = sys.argv[2]
- f = open(arg, 'r')
- try:
- data = f.read().decode(encoding)
- finally:
- f.close()
+ f = open(arg, 'r')
+ try:
+ data = f.read().decode(encoding)
+ finally:
+ f.close()
else:
data = sys.stdin.read().decode('utf8')
wrapwrite(html2text(data, baseurl))