Bug 1113425 - [patch] make msghack python3 compatible
Summary: [patch] make msghack python3 compatible
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gettext
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daiki Ueno
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-26 07:43 UTC by Bohuslav "Slavek" Kabrda
Modified: 2014-07-07 03:17 UTC (History)
4 users (show)

Fixed In Version: gettext-0.19.1-2.fc21
Clone Of:
Environment:
Last Closed: 2014-07-07 03:17:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch to make msghack Python 3 compatible (5.87 KB, patch)
2014-06-26 07:43 UTC, Bohuslav "Slavek" Kabrda
no flags Details | Diff

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


Note You need to log in before you can comment on or make changes to this bug.