[Python-modules-commits] [terminaltables] 05/05: Open the README as UTF-8 encoded

Carl Suster arcresu-guest at moszumanska.debian.org
Thu Jan 12 05:01:41 UTC 2017


This is an automated email from the git hooks/post-receive script.

arcresu-guest pushed a commit to branch master
in repository terminaltables.

commit f8b6a10fa8511a1e55ed2fab7f868b38eaa2dd0b
Author: Carl Suster <carl at contraflo.ws>
Date:   Thu Jan 12 15:33:00 2017 +1100

    Open the README as UTF-8 encoded
---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index db661dd..0d5e27d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -24,7 +24,7 @@ override_dh_installchangelogs:
 	# Trim the changelog section out of the README file. Note that this will
 	# hang if the changelog-section-{start,end} strings don't appear exactly as
 	# they are in the README file.
-	python3 -c "with open('README.rst') as r: print(''.join( \
+	python3 -c "with open('README.rst', encoding='utf-8') as r: print(''.join( \
 		['' for x in iter(r.readline, '.. changelog-section-start\n')] + \
 		[x  for x in iter(r.readline, '.. changelog-section-end\n')]))" \
 			> debian/upstream-changelog

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/terminaltables.git



More information about the Python-modules-commits mailing list