diff options
author | 2020-03-23 22:45:35 -0400 | |
---|---|---|
committer | 2020-04-18 22:35:34 -0400 | |
commit | 1981b61b2574afe02929952e7297dc9005a79549 (patch) | |
tree | 695668c9a6165b2c392c6bd2543aad0e3b08986c /net-p2p/deluge/files | |
parent | dev-python/PyQt5: add 5.14.2 (diff) | |
download | gentoo-1981b61b2574afe02929952e7297dc9005a79549.tar.gz gentoo-1981b61b2574afe02929952e7297dc9005a79549.tar.bz2 gentoo-1981b61b2574afe02929952e7297dc9005a79549.zip |
net-p2p/deluge: fix warning related to gettext
Signed-off-by: Nima Sadeghi <neeshy@tfwno.gf>
Closes: https://github.com/gentoo/gentoo/pull/15081
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'net-p2p/deluge/files')
-rw-r--r-- | net-p2p/deluge/files/deluge-2.0.3-gettext.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net-p2p/deluge/files/deluge-2.0.3-gettext.patch b/net-p2p/deluge/files/deluge-2.0.3-gettext.patch new file mode 100644 index 000000000000..41cf743749c6 --- /dev/null +++ b/net-p2p/deluge/files/deluge-2.0.3-gettext.patch @@ -0,0 +1,11 @@ +--- a/deluge/i18n/util.py ++++ b/deluge/i18n/util.py +@@ -114,7 +114,7 @@ + # Workaround for Python 2 unicode gettext (keyword removed in Py3). + kwargs = {} if not deluge.common.PY2 else {'unicode': True} + +- gettext.install(I18N_DOMAIN, translations_path, names='ngettext', **kwargs) ++ gettext.install(I18N_DOMAIN, translations_path, names=['ngettext'], **kwargs) + builtins.__dict__['_n'] = builtins.__dict__['ngettext'] + + libintl = None |