Skip to content

Commit

Permalink
reformat with black
Browse files Browse the repository at this point in the history
  • Loading branch information
briandfoy committed Nov 5, 2024
1 parent 4936f22 commit edb1a1d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions irrd/scripts/irr_rpsl_submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,8 @@ def format_as_text(response):
Format an IRRd HTTP response into a human-friendly text.
"""
summary = response["summary"]
user_report = textwrap.dedent(f"""
user_report = textwrap.dedent(
f"""
SUMMARY OF UPDATE:
Number of objects found: {summary["objects_found"]:3}
Expand All @@ -655,7 +656,8 @@ def format_as_text(response):
DETAILED EXPLANATION:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
""")
"""
)
for object_result in response["objects"]:
user_report += "---\n"
user_report += format_report_object(object_result)
Expand Down Expand Up @@ -722,7 +724,7 @@ def process_args(options):
# output something.
if "--help" in options:
raise XHelp("") from error
message = error.message if hasattr(error, 'message') else ''
message = error.message if hasattr(error, "message") else ""
raise XArgumentError(f"Error processing command-line arguments: {message}") from error

if args.debug:
Expand Down Expand Up @@ -771,7 +773,8 @@ def metadata(metadata_values):
except IndexError as error:
raise ValueError() from error

description = textwrap.dedent("""\
description = textwrap.dedent(
"""\
Read RPSL submissions from stdin and return a response on stdout.
Errors or debug info are printed to stderr. This program accepts
the arguments for irrdv3's version of irr_rpsl_submit but ignores
Expand All @@ -798,7 +801,8 @@ def metadata(metadata_values):
16 - unexpected response
32 - an unidentified error
""")
"""
)

parser = argparse.ArgumentParser(
add_help=False,
Expand Down

0 comments on commit edb1a1d

Please sign in to comment.