Use literal syntax instead of function calls to create data structure

This commit is contained in:
deepsource-autofix[bot] 2021-09-05 03:17:32 +00:00 committed by GitHub
parent bcb587d751
commit 14fc67c29a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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:

View file

@ -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: