Fixed double parentheses in print method invocations
This commit is contained in:
parent
8ede629b13
commit
fcd43b9fa0
|
@ -59,17 +59,17 @@ def main():
|
|||
config_file = opts.config
|
||||
if os.path.isfile(config_file):
|
||||
# using print because config can also change log locations
|
||||
print(("Loading config from %s." % config_file))
|
||||
print("Loading config from %s." % config_file)
|
||||
try:
|
||||
with open(config_file) as config_fo:
|
||||
json_dict = json.load(config_fo)
|
||||
WormConfiguration.from_kv(json_dict)
|
||||
except ValueError as e:
|
||||
print(("Error loading config: %s, using default" % (e,)))
|
||||
print("Error loading config: %s, using default" % (e,))
|
||||
else:
|
||||
print(("Config file wasn't supplied and default path: %s wasn't found, using internal default" % (config_file,)))
|
||||
print("Config file wasn't supplied and default path: %s wasn't found, using internal default" % (config_file,))
|
||||
|
||||
print(("Loaded Configuration: %r" % WormConfiguration.hide_sensitive_info(WormConfiguration.as_dict())))
|
||||
print("Loaded Configuration: %r" % WormConfiguration.hide_sensitive_info(WormConfiguration.as_dict()))
|
||||
|
||||
# Make sure we're not in a machine that has the kill file
|
||||
kill_path = os.path.expandvars(
|
||||
|
|
|
@ -16,7 +16,7 @@ def main():
|
|||
|
||||
h = SHA3_512.new()
|
||||
h.update(args.string_to_sha)
|
||||
print((h.hexdigest()))
|
||||
print(h.hexdigest())
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in New Issue