Browse Source

Try to be more pythonic

pull/165/head
Oliverpool 9 years ago
parent
commit
9f2b77dd66
  1. 5
      patacrep/songs/__init__.py

5
patacrep/songs/__init__.py

@ -96,10 +96,7 @@ class Song:
] ]
def __init__(self, subpath, config, *, datadir=None): def __init__(self, subpath, config, *, datadir=None):
if datadir is None: self.datadir = datadir or ""
self.datadir = ""
else:
self.datadir = datadir
self.fullpath = os.path.join(self.datadir, subpath) self.fullpath = os.path.join(self.datadir, subpath)
self.encoding = config["encoding"] self.encoding = config["encoding"]
self.default_lang = config["lang"] self.default_lang = config["lang"]

Loading…
Cancel
Save