mirror of
https://github.com/gryf/wmdocklib.git
synced 2026-01-05 21:34:12 +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()]
|
width, height = [int(item) for item in m.groups()]
|
||||||
|
|
||||||
replace = []
|
replace = []
|
||||||
for code, value in font_palette.items():
|
for code, value in [(code, value)
|
||||||
if not available[code] and palette[code] != font_palette[code]:
|
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]
|
newcode = [k for k in available if available[k]][0]
|
||||||
available[newcode] = False
|
available[newcode] = False
|
||||||
replace.append((code, newcode))
|
replace.append((code, newcode))
|
||||||
|
|||||||
Reference in New Issue
Block a user