[Python-modules-commits] r30449 - in packages/django-countries/trunk/debian/patches (2 files)

fladi-guest at users.alioth.debian.org fladi-guest at users.alioth.debian.org
Mon Sep 1 13:15:39 UTC 2014


    Date: Monday, September 1, 2014 @ 13:15:38
  Author: fladi-guest
Revision: 30449

Add python3.4-UnicodeDecodeError.patch to fix ecoding error when reading the README.rst file.

Added:
  packages/django-countries/trunk/debian/patches/python3.4-UnicodeDecodeError.patch
Modified:
  packages/django-countries/trunk/debian/patches/series

Added: packages/django-countries/trunk/debian/patches/python3.4-UnicodeDecodeError.patch
===================================================================
--- packages/django-countries/trunk/debian/patches/python3.4-UnicodeDecodeError.patch	                        (rev 0)
+++ packages/django-countries/trunk/debian/patches/python3.4-UnicodeDecodeError.patch	2014-09-01 13:15:38 UTC (rev 30449)
@@ -0,0 +1,25 @@
+Description: Ensure long_description in setup.py uses utf-8 encoding
+Author: Chris Beaven <smileychris at gmail.com>
+Last-Update: 2014-09-01
+Origin: https://github.com/SmileyChris/django-countries/commit/0044975ffc8eb02a1ed67baabc52e1adfc631687
+Bug-Vendor: https://github.com/SmileyChris/django-countries/pull/48
+
+diff --git a/setup.py b/setup.py
+index 81823cf..fe4f3ec 100755
+--- a/setup.py
++++ b/setup.py
+@@ -1,4 +1,5 @@
+ #!/usr/bin/env python
++import io
+ import os
+ from setuptools import setup, find_packages
+ 
+@@ -9,7 +10,7 @@ def long_description():
+     as this module.
+     """
+     base_path = os.path.dirname(os.path.realpath(__file__))
+-    readme = open(os.path.join(base_path, 'README.rst'))
++    readme = io.open(os.path.join(base_path, 'README.rst'), encoding='utf-8')
+     try:
+         return readme.read()
+     finally:

Modified: packages/django-countries/trunk/debian/patches/series
===================================================================
--- packages/django-countries/trunk/debian/patches/series	2014-09-01 13:14:14 UTC (rev 30448)
+++ packages/django-countries/trunk/debian/patches/series	2014-09-01 13:15:38 UTC (rev 30449)
@@ -1,2 +1,3 @@
 dont_include_flag_icons.patch
 use_iso_codes_package.patch
+python3.4-UnicodeDecodeError.patch




More information about the Python-modules-commits mailing list