#NEWLINE# def nonnegative_int_from_script_bytes( b , require_minimal ) : #NEWLINE# #INDENT# v = int_from_script_bytes ( b , require_minimal = require_minimal ) #NEWLINE# if ( v < 0 ) : #NEWLINE# #INDENT# raise ScriptError ( 'unexpectedly got negative value' ) #NEWLINE# #UNINDENT# return v