[gettext] Update to 0.19.4-3

Daiki Ueno ueno at fedoraproject.org
Thu Feb 19 03:02:42 UTC 2015


commit 56dcfb3d5d680245a24a2c6d29fcf0543d0423e3
Author: Daiki Ueno <dueno at redhat.com>
Date:   Thu Feb 19 12:02:24 2015 +0900

    Update to 0.19.4-3

 gettext.spec |    5 ++++-
 msghack.py   |    4 ++--
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gettext.spec b/gettext.spec
index 0bd46c2..ac476f9 100644
--- a/gettext.spec
+++ b/gettext.spec
@@ -6,7 +6,7 @@
 Summary: GNU libraries and utilities for producing multi-lingual messages
 Name: gettext
 Version: 0.19.4
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPLv3+ and LGPLv2+
 Group: Development/Tools
 URL: http://www.gnu.org/software/gettext/
@@ -336,6 +336,9 @@ fi
 %{_emacs_sitelispdir}/%{name}/*.el
 
 %changelog
+* Thu Feb 19 2015 Daiki Ueno <dueno at redhat.com> - 0.19.4-3
+- port msghack.py to Python 3 (#1192086)
+
 * Wed Dec 31 2014 Daiki Ueno <dueno at redhat.com> - 0.19.4-2
 - remove git dependency from -devel subpackage (#1161284)
 
diff --git a/msghack.py b/msghack.py
index 29bc1a8..358552c 100755
--- a/msghack.py
+++ b/msghack.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/python3
 ## -*- coding: utf-8 -*-
 ## Copyright (C) 2001, 2004, 2008, 2012 Red Hat, Inc.
 ## Copyright (C) 2001 Trond Eivind Glomsrød <teg at redhat.com>
@@ -341,7 +341,7 @@ class GTMaster:
 
 def printUsage():
     "Print the usage messages"
-    print("Usage: ", str(sys.argv[0])," [OPTION] file.po [ref.po]\n\
+    print("Usage: " + str(sys.argv[0]) + " [OPTION] file.po [ref.po]\n\
 This program can be used to alter .po files in ways no sane mind would think about.\n\
     -o                result will be written to FILE\n\
     --invert          invert a po file by switching msgid and msgstr\n\


More information about the scm-commits mailing list