From 9f2b77dd66aa64f413d114459db9a44d5a3320fb Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Sat, 7 Nov 2015 15:35:38 +0100 Subject: [PATCH] Try to be more pythonic --- patacrep/songs/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/patacrep/songs/__init__.py b/patacrep/songs/__init__.py index 833f4fe9..3258aa1f 100644 --- a/patacrep/songs/__init__.py +++ b/patacrep/songs/__init__.py @@ -96,10 +96,7 @@ class Song: ] def __init__(self, subpath, config, *, datadir=None): - if datadir is None: - self.datadir = "" - else: - self.datadir = datadir + self.datadir = datadir or "" self.fullpath = os.path.join(self.datadir, subpath) self.encoding = config["encoding"] self.default_lang = config["lang"]