Skip to content

Commit 7ee93f3

Browse files
committed
Use __all__ in bitcoin.core.scripteval
Previously was exporting the entire bitcoin.core.script namespace as well. [ yapified by gitreformat (github/ghtdak) on Mon Nov 30 21:11:10 2015 ]
1 parent 11153c8 commit 7ee93f3

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

bitcoin/core/scripteval.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
import bitcoin.core.key
3131
import bitcoin.core.serialize
3232

33+
# Importing everything for simplicity; note that we use __all__ at the end so
34+
# we're not exporting the whole contents of the script module.
3335
from bitcoin.core.script import *
3436

3537
nMaxNumSize = 4
@@ -788,3 +790,20 @@ def VerifySignature(txFrom, txTo, inIdx):
788790
raise VerifySignatureError("prevout hash does not match txFrom")
789791

790792
VerifyScript(txin.scriptSig, txout.scriptPubKey, txTo, inIdx)
793+
794+
795+
__all__ = ('MAX_STACK_ITEMS',
796+
'SCRIPT_VERIFY_P2SH',
797+
'SCRIPT_VERIFY_STRICTENC',
798+
'SCRIPT_VERIFY_EVEN_S',
799+
'SCRIPT_VERIFY_NOCACHE',
800+
'EvalScriptError',
801+
'MaxOpCountError',
802+
'MissingOpArgumentsError',
803+
'ArgumentsInvalidError',
804+
'VerifyOpFailedError',
805+
'EvalScript',
806+
'VerifyScriptError',
807+
'VerifyScript',
808+
'VerifySignatureError',
809+
'VerifySignature',)

0 commit comments

Comments
 (0)