Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed Aug 6, 2023
1 parent 7f79d4f commit 85d9381
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
22 changes: 19 additions & 3 deletions split.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
action="store_true",
help="Skips the disassembler's version check",
)
parser.add_argument("--stdout-only", help="Print all output to stdout", action="store_true")
parser.add_argument(
"--stdout-only", help="Print all output to stdout", action="store_true"
)

linker_writer: LinkerWriter
config: Dict[str, Any]
Expand Down Expand Up @@ -211,7 +213,14 @@ def brief_seg_name(seg: Segment, limit: int, ellipsis="…") -> str:
return s


def main(config_path, modes, verbose, use_cache=True, skip_version_check=False, stdout_only=False):
def main(
config_path,
modes,
verbose,
use_cache=True,
skip_version_check=False,
stdout_only=False,
):
global config

if stdout_only:
Expand Down Expand Up @@ -476,4 +485,11 @@ def main(config_path, modes, verbose, use_cache=True, skip_version_check=False,

if __name__ == "__main__":
args = parser.parse_args()
main(args.config, args.modes, args.verbose, args.use_cache, args.skip_version_check, args.stdout_only)
main(
args.config,
args.modes,
args.verbose,
args.use_cache,
args.skip_version_check,
args.stdout_only,
)
7 changes: 2 additions & 5 deletions util/progress_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

out_file = sys.stderr


def get_progress_bar(elements: list) -> tqdm.tqdm:
return tqdm.tqdm(
elements,
total=len(elements),
file=out_file
)
return tqdm.tqdm(elements, total=len(elements), file=out_file)

0 comments on commit 85d9381

Please sign in to comment.