diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-04-12 18:11:37 +0100 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-04-12 18:16:20 +0100 |
commit | 0bab57fbbaad5a70e5b7d9e62c31d4e38dc31a30 (patch) | |
tree | ae469953bd1d4f9fca78a6fbe0ac3fdb2e8a9f02 /morphlib/source.py | |
parent | bda8c93aa4559cbecfd9d066a44fec71df06ef0c (diff) | |
download | morph-0bab57fbbaad5a70e5b7d9e62c31d4e38dc31a30.tar.gz |
Accept any object that is an instance of morph2.Morphology in Source.
Diffstat (limited to 'morphlib/source.py')
-rw-r--r-- | morphlib/source.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/source.py b/morphlib/source.py index d6d86216..22676f02 100644 --- a/morphlib/source.py +++ b/morphlib/source.py @@ -37,7 +37,7 @@ class Source(object): ''' def __init__(self, repo, original_ref, sha1, morphology, filename): - assert type(morphology) == morphlib.morph2.Morphology + assert isinstance(morphology, morphlib.morph2.Morphology) self.repo = repo self.original_ref = original_ref self.sha1 = sha1 |