[Python-modules-commits] [python-gammu] 06/07: Fix encoding error with README

Michal Cihar nijel at moszumanska.debian.org
Wed Jun 3 13:46:07 UTC 2015


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

nijel pushed a commit to branch master
in repository python-gammu.

commit 129fb991b2bf62b800347ad209dc8994c8989dbe
Author: Michal Čihař <michal at cihar.com>
Date:   Wed Jun 3 15:03:26 2015 +0200

    Fix encoding error with README
---
 .../0001-Explicitely-define-README-encoding.patch  | 35 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 36 insertions(+)

diff --git a/debian/patches/0001-Explicitely-define-README-encoding.patch b/debian/patches/0001-Explicitely-define-README-encoding.patch
new file mode 100644
index 0000000..9a82908
--- /dev/null
+++ b/debian/patches/0001-Explicitely-define-README-encoding.patch
@@ -0,0 +1,35 @@
+From 484af70ed4402b3ba6ff147d9d4b7ac676605879 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= <michal at cihar.com>
+Date: Wed, 3 Jun 2015 15:02:15 +0200
+Subject: [PATCH 1/1] Explicitely define README encoding
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Michal Čihař <michal at cihar.com>
+---
+ setup.py | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index a02dcaf..836bb08 100755
+--- a/setup.py
++++ b/setup.py
+@@ -27,11 +27,13 @@ python-gammu - Phone communication libary
+ import distutils.spawn
+ from setuptools import setup, Extension
+ import os
++import codecs
+ 
+ # some defines
+ VERSION = '2.3'
+ GAMMU_REQUIRED = '1.34.0'
+-with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
++README_FILE = os.path.join(os.path.dirname(__file__), 'README.rst')
++with codecs.open(README_FILE, 'r', 'utf-8') as readme:
+     README = readme.read()
+ 
+ 
+-- 
+2.1.4
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a0d662b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Explicitely-define-README-encoding.patch

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



More information about the Python-modules-commits mailing list