From 56dcfb3d5d680245a24a2c6d29fcf0543d0423e3 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Thu, 19 Feb 2015 12:02:24 +0900 Subject: [PATCH] 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 - 0.19.4-3 +- port msghack.py to Python 3 (#1192086) + * Wed Dec 31 2014 Daiki Ueno - 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 @@ -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\