summaryrefslogtreecommitdiff
path: root/morphlib/morph2.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-05-09 17:45:36 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-05-09 17:45:36 +0100
commita1305ad1e8f0496b42a6037ed114523d963d9698 (patch)
tree76126b410dfb30fdfdc502fece9285411a7b5d4b /morphlib/morph2.py
parentf01be2d4e2804578e4e66d692362dd15f9ef5a6b (diff)
downloadmorph-a1305ad1e8f0496b42a6037ed114523d963d9698.tar.gz
Add a Morphology.keys() method
Diffstat (limited to 'morphlib/morph2.py')
-rw-r--r--morphlib/morph2.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/morphlib/morph2.py b/morphlib/morph2.py
index b825f8cf..37e6f24f 100644
--- a/morphlib/morph2.py
+++ b/morphlib/morph2.py
@@ -49,6 +49,9 @@ class Morphology(object):
def __contains__(self, key):
return key in self._dict
+
+ def keys(self):
+ return self._dict.keys()
def _set_defaults(self):
if 'max-jobs' in self: