mirror of
https://github.com/zrax/pycdc.git
synced 2026-06-23 11:34:07 +00:00
Support new marshal types from Python 3.4
This commit is contained in:
parent
6ecbcfb564
commit
176a049a68
9 changed files with 131 additions and 27 deletions
|
|
@ -5,7 +5,11 @@
|
|||
/* PycTuple */
|
||||
void PycTuple::load(PycData* stream, PycModule* mod)
|
||||
{
|
||||
m_size = stream->get32();
|
||||
if (type() == TYPE_SMALL_TUPLE)
|
||||
m_size = stream->getByte();
|
||||
else
|
||||
m_size = stream->get32();
|
||||
|
||||
m_values.resize(m_size);
|
||||
for (int i=0; i<m_size; i++)
|
||||
m_values[i] = LoadObject(stream, mod);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue