[Python-apps-commits] r10286 - in packages/gtimelog/trunk/debian (3 files)

barry at users.alioth.debian.org barry at users.alioth.debian.org
Mon Dec 23 20:35:10 UTC 2013


    Date: Monday, December 23, 2013 @ 20:35:09
  Author: barry
Revision: 10286

d/patches/i18n-setup.patch: Added.

Added:
  packages/gtimelog/trunk/debian/patches/i18n-setup.patch
Modified:
  packages/gtimelog/trunk/debian/changelog
  packages/gtimelog/trunk/debian/patches/series

Modified: packages/gtimelog/trunk/debian/changelog
===================================================================
--- packages/gtimelog/trunk/debian/changelog	2013-12-23 20:17:02 UTC (rev 10285)
+++ packages/gtimelog/trunk/debian/changelog	2013-12-23 20:35:09 UTC (rev 10286)
@@ -20,6 +20,7 @@
   * d/rules:
     - Use --buildsystem=pybuild and --with=python3
     - Use rst2man to process rewritten manpages.
+  * d/patches/i18n-setup.patch: Added.
 
  -- Barry Warsaw <barry at debian.org>  Mon, 23 Dec 2013 15:03:14 -0500
 

Added: packages/gtimelog/trunk/debian/patches/i18n-setup.patch
===================================================================
--- packages/gtimelog/trunk/debian/patches/i18n-setup.patch	                        (rev 0)
+++ packages/gtimelog/trunk/debian/patches/i18n-setup.patch	2013-12-23 20:35:09 UTC (rev 10286)
@@ -0,0 +1,22 @@
+Description: Open text files in utf-8 mode, since NEWS.rst contains
+ non-ASCII characters.
+Author: Barry Warsaw <barry at debian.org>
+Bug: https://bugs.launchpad.net/gtimelog/+bug/1263772
+
+--- a/setup.py
++++ b/setup.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ import os
+ import re
+ from setuptools import setup
+@@ -7,7 +7,7 @@
+ 
+ 
+ def read(filename):
+-    with open(os.path.join(here, filename)) as f:
++    with open(os.path.join(here, filename), 'r', encoding='utf-8') as f:
+         return f.read()
+ 
+ 

Modified: packages/gtimelog/trunk/debian/patches/series
===================================================================
--- packages/gtimelog/trunk/debian/patches/series	2013-12-23 20:17:02 UTC (rev 10285)
+++ packages/gtimelog/trunk/debian/patches/series	2013-12-23 20:35:09 UTC (rev 10286)
@@ -1 +1,2 @@
 fix-icon-path
+i18n-setup.patch




More information about the Python-apps-commits mailing list