File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -63,13 +63,13 @@ def randomart(H):
63
63
symbol = lambda c : palette [c % len (palette )]
64
64
65
65
# 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╶──╮" )
68
68
for line in mat :
69
- print ("|" if ascii else "│" , end = "" )
69
+ print ("|" if use_ascii else "│" , end = "" )
70
70
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 )
73
73
74
74
# print base64 encoded hash
75
75
def printhash (H ):
You can’t perform that action at this time.
0 commit comments