Skip to content

Commit 377fcd6

Browse files
committed
deps, find, main: avoid using `\t' as spacing character
1 parent 6090e53 commit 377fcd6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

acbs/deps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def strongly_connected(search_path: str, packages_list: List[str], results: list
5555
stack.append(vert)
5656

5757
# search package begin
58-
print(f'[{len(results) + 1}/{len(pool)}] {vert}\t\t\r', end='', flush=True)
58+
print(f'[{len(results) + 1}/{len(pool)}] {vert:30}\r', end='', flush=True)
5959
current_package = packages.get(vert)
6060
if current_package is None:
6161
package = pool.get(vert) or find_package(vert, search_path, stage2)

acbs/find.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def find_package(name: str, search_path: str, stage2: bool) -> List[ACBSPackageI
5555
results = []
5656
print()
5757
for n, p in enumerate(packages):
58-
print(f'[{n + 1}/{len(packages)}] {name} > {p}{" " * 15}\r', end='', flush=True)
58+
print(f'[{n + 1}/{len(packages)}] {name} > {p:15}\r', end='', flush=True)
5959
p = p.strip()
6060
if not p or p.startswith('#'):
6161
continue

acbs/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def build(self) -> None:
9999
acbs.pm.reorder_mode = self.reorder
100100
for n, i in enumerate(self.build_queue):
101101
logging.debug(f'Finding {i}...')
102-
print(f'[{n + 1}/{len(self.build_queue)}] {i}\t\t\r', end='', flush=True)
102+
print(f'[{n + 1}/{len(self.build_queue)}] {i:30}\r', end='', flush=True)
103103
package = find_package(i, self.tree_dir, stage2=self.stage2)
104104
if not package:
105105
raise RuntimeError(f'Could not find package {i}')

0 commit comments

Comments
 (0)