From ec389a4fbaa7ed676066b978782ab24791546ced Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Thu, 17 Sep 2015 15:31:45 +0200 Subject: [PATCH] Add missing docstrings --- patacrep/songs/__init__.py | 1 + patacrep/songs/chordpro/ast.py | 1 + 2 files changed, 2 insertions(+) diff --git a/patacrep/songs/__init__.py b/patacrep/songs/__init__.py index aaee99cf..262187c4 100644 --- a/patacrep/songs/__init__.py +++ b/patacrep/songs/__init__.py @@ -195,6 +195,7 @@ class Song: raise NotImplementedError() def get_cover_fullpath(self, default=None): + """Return the fullpath of the cover file if found""" filename = self.data.get('cov') if not filename: return default diff --git a/patacrep/songs/chordpro/ast.py b/patacrep/songs/chordpro/ast.py index 5a9ef430..09fc5acd 100644 --- a/patacrep/songs/chordpro/ast.py +++ b/patacrep/songs/chordpro/ast.py @@ -40,6 +40,7 @@ class OrderedLifoDict: return self._values[key] def get(self, key, default=None): + """Same as :meth:`dict.get`.""" return self._values.get(key, default) def _indent(string):