mirror of
https://github.com/gryf/wmdocklib.git
synced 2025-12-30 18:32:30 +01:00
1587104: error initializing font 3x5
'and' is not 'and_then'... split a test in two parts: if elem[c] and d2[c]... into if elem[c] then if d2[c]...
This commit is contained in:
@@ -277,8 +277,10 @@ def initPixmap(background=None,
|
||||
width, height = [int(item) for item in m.groups()]
|
||||
|
||||
replace = []
|
||||
for code, value in font_palette.items():
|
||||
if not available[code] and palette[code] != font_palette[code]:
|
||||
for code, value in [(code, value)
|
||||
for (code, value) in font_palette.items()
|
||||
if not available[code]]:
|
||||
if palette[code] != font_palette[code]:
|
||||
newcode = [k for k in available if available[k]][0]
|
||||
available[newcode] = False
|
||||
replace.append((code, newcode))
|
||||
|
||||
Reference in New Issue
Block a user