Merge branch 'upstream-pycdc'
This commit is contained in:
@@ -2091,8 +2091,6 @@ PycRef<ASTNode> BuildFromCode(PycRef<PycCode> code, PycModule* mod)
|
||||
blocks.pop();
|
||||
curblock = blocks.top();
|
||||
curblock->append(prev.cast<ASTNode>());
|
||||
|
||||
bc_next(source, mod, opcode, operand, pos);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
BIN
tests/compiled/test_raise_varargs.3.12.pyc
Normal file
BIN
tests/compiled/test_raise_varargs.3.12.pyc
Normal file
Binary file not shown.
7
tests/input/test_raise_varargs.py
Normal file
7
tests/input/test_raise_varargs.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import struct
|
||||
|
||||
def bytes_to_words(b):
|
||||
'''Convert a byte string (little-endian) to a list of 32-bit words.'''
|
||||
if len(b) % 4 != 0:
|
||||
raise ValueError('Input bytes length must be a multiple of 4 for word conversion.')
|
||||
return struct.unpack('<' + 'I' * (len(b) // 4), b)
|
9
tests/tokenized/test_raise_varargs.txt
Normal file
9
tests/tokenized/test_raise_varargs.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
import struct <EOL>
|
||||
def bytes_to_words ( b ) : <EOL>
|
||||
<INDENT>
|
||||
'Convert a byte string (little-endian) to a list of 32-bit words.' <EOL>
|
||||
if len ( b ) % 4 != 0 : <EOL>
|
||||
<INDENT>
|
||||
raise ValueError ( 'Input bytes length must be a multiple of 4 for word conversion.' ) <EOL>
|
||||
<OUTDENT>
|
||||
return struct . unpack ( '<' + 'I' * ( len ( b ) // 4 ) , b ) <EOL>
|
Reference in New Issue
Block a user