commit | 8f825060f1c168b913f2ac299ca48d4e9375f34d | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Fri Apr 27 13:55:39 2012 +0200 |
committer | Victor Stinner <victor.stinner@gmail.com> | Fri Apr 27 13:55:39 2012 +0200 |
tree | 8f8a2fe0d64cd2fdf98fdb762ff1def490473bde | |
parent | 990eff0776a948b4a45b1c2750552c0c6864b5c7 [diff] [blame] |
Check newly created consistency using _PyUnicode_CheckConsistency(str, 1) * In debug mode, fill the string data with invalid characters * Simplify also reference counting in PyCodec_BackslashReplaceErrors() and PyCodec_XMLCharRefReplaceError()
diff --git a/Python/compile.c b/Python/compile.c index 79d1d21..10e9ad2 100644 --- a/Python/compile.c +++ b/Python/compile.c
@@ -263,6 +263,7 @@ Py_DECREF(result); return NULL; } + assert(_PyUnicode_CheckConsistency(result, 1)); return result; }