MarcoFalke
|
fa0e65b772
|
scripted-diff: test: Remove brackets after assert
-BEGIN VERIFY SCRIPT-
sed -i --regexp-extended -e 's/assert ?\((.+)\)(( )*)?(#.*)?$/assert \1\3\3\4/g' $(git grep -l --extended-regexp 'assert ?\(' test)
-END VERIFY SCRIPT-
|
2019-03-02 10:51:35 -05:00 |
|
MarcoFalke
|
fa6bf21f5e
|
scripted-diff: test: Use py3.5 bytes::hex() method
-BEGIN VERIFY SCRIPT-
sed -i -e "s/def bytes_to_hex_str/def b_2_x/g" $(git grep -l bytes_to_hex_str)
export RE_B_0="[^()]*" # match no bracket
export RE_B_1="${RE_B_0}\(${RE_B_0}\)${RE_B_0}" # match exactly one ()
export RE_B_2="${RE_B_0}\(${RE_B_1}\)${RE_B_0}" # match wrapped (())
export RE_M="(b2x|bytes_to_hex_str)\(((${RE_B_0}|${RE_B_1}|${RE_B_2})*)\)"
sed -i --regexp-extended -e "s/${RE_M}/\2.hex()/g" $(git grep -l -E '(b2x|bytes_to_hex_str)')
sed -i --regexp-extended -e "/ +bytes_to_hex_str( as b2x)?,/d" $(git grep -l bytes_to_hex_str)
sed -i --regexp-extended -e "s/ +bytes_to_hex_str( as b2x)?,//g" $(git grep -l bytes_to_hex_str)
sed -i --regexp-extended -e "s/, bytes_to_hex_str( as b2x)?//g" $(git grep -l bytes_to_hex_str)
export RE_M="(binascii\.)?hexlify\(((${RE_B_0}|${RE_B_1}|${RE_B_2})*)\).decode\(${RE_B_0}\)"
sed -i --regexp-extended -e "s/${RE_M}/\2.hex()/g" $(git grep -l hexlify -- ':(exclude)share')
sed -i --regexp-extended -e "/from binascii import hexlify$/d" $(git grep -l hexlify -- ':(exclude)share')
sed -i --regexp-extended -e "s/(from binascii import) .*hexlify/\1 unhexlify/g" $(git grep -l hexlify -- ':(exclude)share')
sed -i -e 's/ignore-names "/ignore-names "b_2_x,/g' ./test/lint/lint-python-dead-code.sh
-END VERIFY SCRIPT-
|
2019-03-02 10:40:12 -05:00 |
|
MarcoFalke
|
faa4043c66
|
qa: Run more tests with wallet disabled
|
2018-09-25 18:08:08 -04:00 |
|
DrahtBot
|
eb7daf4d60
|
Update copyright headers to 2018
|
2018-07-27 07:15:02 -04:00 |
|
Akira Takizawa
|
595a7bab23
|
Increment MIT Licence copyright header year on files modified in 2017
|
2018-01-03 02:26:56 +09:00 |
|
Pieter Wuille
|
fd0041aa27
|
Use BIP173 addresses in segwit.py test
|
2017-09-28 17:29:01 -07:00 |
|
practicalswift
|
2e6080bbf3
|
Remove unused variables and/or function calls
|
2017-08-28 15:18:14 +02:00 |
|
John Newbery
|
c28ee91db0
|
Rename rpc-tests directory to functional
|
2017-03-20 10:40:31 -04:00 |
|