[issue28563] Arbitrary code execution in gettext.c2py
Tim Graham
report at bugs.python.org
Mon Nov 14 11:49:45 EST 2016
Tim Graham added the comment:
Yes, that fixes the second test. Current warning (with stacklevel=3):
/home/tim/code/cpython/Lib/gettext.py:454: DeprecationWarning: Plural value must be an integer, got 1.29
tmsg = self._catalog[(msgid1, self.plural(n))]
Possibly the stacklevel should instead be 4:
/home/tim/code/django/django/utils/translation/trans_real.py:373: DeprecationWarning: Plural value must be an integer, got 1.29
return getattr(t, translation_function)(singular, plural, number)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28563>
_______________________________________
More information about the Python-bugs-list
mailing list