Bug 1113425

Summary: [patch] make msghack python3 compatible
Product: [Fedora] Fedora Reporter: Bohuslav "Slavek" Kabrda <bkabrda>
Component: gettextAssignee: Daiki Ueno <dueno>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dueno, i18n-bugs, petersen, praiskup
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gettext-0.19.1-2.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-07 03:17:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to make msghack Python 3 compatible none

Description Bohuslav "Slavek" Kabrda 2014-06-26 07:43:24 UTC
Created attachment 912367 [details]
Patch to make msghack Python 3 compatible

Hi, as Fedora is slowly moving to Python 3 as a default [1], we're trying to make as many packages (most importantly from livecd) Python 3 compatible. Gettext requires Python for one script - msghack - so I'm attaching a patch to make it forward compatible with Python 3, while maintaining Python 2 compatibility.
Please note, that until Fedora rawhide is the future Fedora 22, the script should still use "#!/usr/bin/python2" (this is now the preferred way of explicitly saying that you want you script to run on Python 2). The hashbang should be changed after Fedora 21 is branched, but since it will probably require some sort of distro-wide coordination, a separate bug will be opened for it.

[1] https://fedoraproject.org/wiki/Changes/Python_3_as_Default