mirror of
https://github.com/offa/android-foss.git
synced 2026-04-21 20:56:19 +05:30
Make it work for older python versions
This commit is contained in:
parent
943e8381ee
commit
83f8bf5370
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ def main():
|
|||
longest_str = len(max(unsorted, key=len))
|
||||
for j in range(len(sorted)):
|
||||
color = sorted[j] != unsorted[j]
|
||||
print(f' {bcolors.RED if color else ''}{unsorted[j]}{bcolors.ENDC if color else ''}{((longest_str-len(unsorted[j]))+2) * ' '}{bcolors.GREEN if color else ''}{sorted[j]}{bcolors.ENDC if color else ''}')
|
||||
print(f' {bcolors.RED if color else ""}{unsorted[j]}{bcolors.ENDC if color else ""}{((longest_str-len(unsorted[j]))+2) * " "}{bcolors.GREEN if color else ""}{sorted[j]}{bcolors.ENDC if color else ""}')
|
||||
all_sorted = False
|
||||
|
||||
if not all_sorted:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue