Use literal syntax instead of function calls to create data structure
This commit is contained in:
parent
bcb587d751
commit
14fc67c29a
|
@ -31,8 +31,8 @@ def module_name(path):
|
|||
return path[:-4]
|
||||
return None
|
||||
|
||||
files = dict()
|
||||
deps = dict()
|
||||
files = {}
|
||||
deps = {}
|
||||
|
||||
RE = re.compile("^#include <(.*)>")
|
||||
|
||||
|
@ -64,7 +64,7 @@ while True:
|
|||
shortest_cycle = None
|
||||
for module in sorted(deps.keys()):
|
||||
# Build the transitive closure of dependencies of module
|
||||
closure = dict()
|
||||
closure = {}
|
||||
for dep in deps[module]:
|
||||
closure[dep] = []
|
||||
while True:
|
||||
|
|
|
@ -446,7 +446,7 @@ def make_spender(comment, *, tap=None, witv0=False, script=None, pkh=None, p2sh=
|
|||
* sigops_weight: the pre-taproot sigops weight consumed by a successful spend
|
||||
"""
|
||||
|
||||
conf = dict()
|
||||
conf = {}
|
||||
|
||||
# Compute scriptPubKey and set useful defaults based on the inputs.
|
||||
if witv0:
|
||||
|
|
Loading…
Reference in a new issue