From d062a1e9aa9d8dabd119871d17c54b4bd09c8907 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sun, 27 Mar 2022 22:09:29 +0200 Subject: [PATCH] Use elif --- boxes/formats.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/boxes/formats.py b/boxes/formats.py index d8ecab0..bf4c3b7 100644 --- a/boxes/formats.py +++ b/boxes/formats.py @@ -65,11 +65,10 @@ class Formats: def getSurface(self, fmt, filename): if fmt in ("svg", "svg_Ponoko"): surface = SVGSurface(filename) + elif fmt == "lbrn2": + surface = LBRN2Surface(filename) else: - if fmt == "lbrn2": - surface = LBRN2Surface(filename) - else: - surface = PSSurface(filename) + surface = PSSurface(filename) ctx = Context(surface) return surface, ctx