Use elif
This commit is contained in:
parent
f1f829d5fb
commit
d062a1e9aa
|
@ -65,8 +65,7 @@ class Formats:
|
||||||
def getSurface(self, fmt, filename):
|
def getSurface(self, fmt, filename):
|
||||||
if fmt in ("svg", "svg_Ponoko"):
|
if fmt in ("svg", "svg_Ponoko"):
|
||||||
surface = SVGSurface(filename)
|
surface = SVGSurface(filename)
|
||||||
else:
|
elif fmt == "lbrn2":
|
||||||
if fmt == "lbrn2":
|
|
||||||
surface = LBRN2Surface(filename)
|
surface = LBRN2Surface(filename)
|
||||||
else:
|
else:
|
||||||
surface = PSSurface(filename)
|
surface = PSSurface(filename)
|
||||||
|
|
Loading…
Reference in New Issue