Fix string constant folding with language_level=2 (GH-4083)
* Handle constant folding for LanguageLevel 2 on Python 3. Ensure that when StrNode is a BytesLiteral, that we don't coerce it to unicode. * Add test for string multiplication bug. Needed to change the TreePath slightly to allow bytes-to-str comparison. Fixes https://github.com/cython/cython/issues/3951
Showing
Please register or sign in to comment