Browse Source

Nicer getter

pull/98/head
Oliverpool 9 years ago
parent
commit
1baf52ec39
  1. 4
      patacrep/songs/chordpro/ast.py

4
patacrep/songs/chordpro/ast.py

@ -40,9 +40,7 @@ class OrderedLifoDict:
return self._values[key] return self._values[key]
def get(self, key, default=None): def get(self, key, default=None):
if key not in self._keys: return self._values.get(key, default)
return default
return self._values[key]
def _indent(string): def _indent(string):
"""Return and indented version of argument.""" """Return and indented version of argument."""

Loading…
Cancel
Save