From 9db2a86c72d7e5c4307c168b8a26ca94eee14838 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Sat, 7 Nov 2015 16:30:35 +0100 Subject: [PATCH] Be more pythonic --- patacrep/songs/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patacrep/songs/__init__.py b/patacrep/songs/__init__.py index 52007ff4..d19e22df 100644 --- a/patacrep/songs/__init__.py +++ b/patacrep/songs/__init__.py @@ -101,7 +101,7 @@ class Song: self.use_cache = False else: self.datadir = datadir - self.use_cache = ('_cache' in config) and config['_cache'] + self.use_cache = config.get('_cache', False) self.fullpath = os.path.join(self.datadir, subpath) self.subpath = subpath