Skip to content

Commit 5c6f1bf

Browse files
committed
avoid redefinition of builtin ascii
1 parent a9aab88 commit 5c6f1bf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

randomart.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ def randomart(H):
6363
symbol = lambda c: palette[c % len(palette)]
6464

6565
# draw characters in a box
66-
def draw(mat, ascii=False):
67-
print("+--|randomart.py|--+" if ascii else "╭──╴randomart.py╶──╮")
66+
def draw(mat, use_ascii=False):
67+
print("+--|randomart.py|--+" if use_ascii else "╭──╴randomart.py╶──╮")
6868
for line in mat:
69-
print("|" if ascii else "│", end="")
69+
print("|" if use_ascii else "│", end="")
7070
print("".join((symbol(el) for el in line)), end="")
71-
print("|" if ascii else "│")
72-
print(("+--|SHAKE256/%03d|--+" if ascii else "╰──╴SHAKE256/%03d╶──╯") % digestsize)
71+
print("|" if use_ascii else "│")
72+
print(("+--|SHAKE256/%03d|--+" if use_ascii else "╰──╴SHAKE256/%03d╶──╯") % digestsize)
7373

7474
# print base64 encoded hash
7575
def printhash(H):

0 commit comments

Comments
 (0)