]> granicus.if.org Git - python/commitdiff
Fixed crasher. Patch by Florent Xicluna.
authorEzio Melotti <ezio.melotti@gmail.com>
Sat, 16 Jan 2010 15:09:48 +0000 (15:09 +0000)
committerEzio Melotti <ezio.melotti@gmail.com>
Sat, 16 Jan 2010 15:09:48 +0000 (15:09 +0000)
Lib/test/crashers/bogus_code_obj.py

index 43815c1b1cd60ce6eba528879ab026f174432719..198d229491b143548a5b244bac80ac9ba59b21ad 100644 (file)
@@ -14,6 +14,6 @@ the user build or load random bytecodes anyway.  Otherwise, this is a
 
 import types
 
-co = types.CodeType(0, 0, 0, 0, '\x04\x71\x00\x00', (),
-                    (), (), '', '', 1, '')
+co = types.CodeType(0, 0, 0, 0, 0, b'\x04\x71\x00\x00',
+                    (), (), (), '', '', 1, b'')
 exec(co)