Fedora Account System
Red Hat Associate
Red Hat Customer
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