From 9e44cd5bfe1e1fe30d0e1f98799fd7dc7a6dad6e Mon Sep 17 00:00:00 2001 From: "P. Christeas" Date: Fri, 8 Apr 2011 14:23:24 +0300 Subject: 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 --- addons/email_template/html2text.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 addons/email_template/html2text.py (limited to 'addons/email_template/html2text.py') diff --git a/addons/email_template/html2text.py b/addons/email_template/html2text.py old mode 100644 new mode 100755 index af7848fee2d..2479843777a --- 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)) -- cgit v1.2.3