Adds support for BUILD_CONST_KEY_MAP opcode
Tests have also been added. Fixes #172
This commit is contained in:
BIN
tests/compiled/build_const_key_map.2.7.pyc
Normal file
BIN
tests/compiled/build_const_key_map.2.7.pyc
Normal file
Binary file not shown.
BIN
tests/compiled/build_const_key_map.3.8.pyc
Normal file
BIN
tests/compiled/build_const_key_map.3.8.pyc
Normal file
Binary file not shown.
22
tests/input/build_const_key_map.py
Normal file
22
tests/input/build_const_key_map.py
Normal file
@@ -0,0 +1,22 @@
|
||||
cookie = 1
|
||||
constant_headers_1 = {
|
||||
'Accept': 'application/json',
|
||||
'Accept-Encoding': 'gzip, deflate, br',
|
||||
'Accept-Language': 'es,ca;q=0.9,en;q=0.8',
|
||||
'Cache-Control': 'no-cache',
|
||||
'Connection': 'keep-alive',
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
'Pragma': 'no-cache',
|
||||
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36',
|
||||
'Cookie': cookie }
|
||||
|
||||
constant_headers_2 = {
|
||||
'Accept': 'application/json',
|
||||
'Accept-Encoding': 'gzip, deflate, br',
|
||||
'Accept-Language': 'es,ca;q=0.9,en;q=0.8',
|
||||
'Cache-Control': 'no-cache',
|
||||
'Connection': 'keep-alive',
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
'Pragma': 'no-cache',
|
||||
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36',
|
||||
'Cookie': 'constant cookie' }
|
3
tests/tokenized/build_const_key_map.txt
Normal file
3
tests/tokenized/build_const_key_map.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
cookie = 1 <EOL>
|
||||
constant_headers_1 = { 'Accept' : 'application/json' , 'Accept-Encoding' : 'gzip, deflate, br' , 'Accept-Language' : 'es,ca;q=0.9,en;q=0.8' , 'Cache-Control' : 'no-cache' , 'Connection' : 'keep-alive' , 'Content-Type' : 'application/x-www-form-urlencoded' , 'Pragma' : 'no-cache' , 'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36' , 'Cookie' : cookie } <EOL>
|
||||
constant_headers_2 = { 'Accept' : 'application/json' , 'Accept-Encoding' : 'gzip, deflate, br' , 'Accept-Language' : 'es,ca;q=0.9,en;q=0.8' , 'Cache-Control' : 'no-cache' , 'Connection' : 'keep-alive' , 'Content-Type' : 'application/x-www-form-urlencoded' , 'Pragma' : 'no-cache' , 'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36' , 'Cookie' : 'constant cookie' } <EOL>
|
Reference in New Issue
Block a user