pull/4242/head
Lesmiscore 2022-06-30 21:59:39 +09:00
rodzic ca9f1df253
commit 44f14eb43e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0EC2B52CF86236FF
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -4755,7 +4755,7 @@ def _base_n_table(n, table):
raise ValueError('Either table or n must be specified')
table = (table or '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')[:n]
if n != len(table):
if n and n != len(table):
raise ValueError(f'base {n} exceeds table length {len(table)}')
return table