Skip to content

Commit a11a3f9

Browse files
author
Ralf W. Grosse-Kunstleve
committed
libs/python/src/converter/builtin_converters.cpp: Python 3.2 compatibility, based on patch by Matthew Bradbury, fixes issue #4994
[SVN r71050]
1 parent 4c2927c commit a11a3f9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/converter/builtin_converters.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,10 @@ namespace
431431
if (!result.empty())
432432
{
433433
int err = PyUnicode_AsWideChar(
434-
(PyUnicodeObject *)intermediate
434+
#if PY_VERSION_HEX < 0x03020000
435+
(PyUnicodeObject *)
436+
#endif
437+
intermediate
435438
, &result[0]
436439
, result.size());
437440

0 commit comments

Comments
 (0)