diff options
author | alaaosh <alaaosh@54714841-351b-0410-a198-e36a94b762f5> | 2010-01-04 23:59:30 (GMT) |
---|---|---|
committer | Sayamindu Dasgupta <sayamindu@gmail.com> | 2010-01-09 09:11:45 (GMT) |
commit | d6ef7b26b148d69454e3fcb068c567c13ac3b67e (patch) | |
tree | a7597d5a5d52f1973ede7671d17f228af99ff42f /translate-toolkit-1.5.1/translate/search/match.py | |
parent | aa600814c8481432b6440c984eec544dd8af28d3 (diff) |
can't test for list since we want to use django query sets. test for TranslationStore and TranslationUnit instead
git-svn-id: https://translate.svn.sourceforge.net/svnroot/translate/src/trunk/translate@13577 54714841-351b-0410-a198-e36a94b762f5
Diffstat (limited to 'translate-toolkit-1.5.1/translate/search/match.py')
-rw-r--r-- | translate-toolkit-1.5.1/translate/search/match.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/translate-toolkit-1.5.1/translate/search/match.py b/translate-toolkit-1.5.1/translate/search/match.py index 750fbc6..899764e 100644 --- a/translate-toolkit-1.5.1/translate/search/match.py +++ b/translate-toolkit-1.5.1/translate/search/match.py @@ -74,7 +74,7 @@ class matcher(object): self.existingunits = {} self.candidates = base.TranslationStore() - if not isinstance(stores, list): + if isinstance(stores, base.TranslationStore): stores = [stores] for store in stores: self.extendtm(store.units, store=store, sort=False) @@ -92,7 +92,7 @@ class matcher(object): sorting of the candidates list. This should probably only be used in inittm(). """ - if not isinstance(units, list): + if isinstance(units, base.TranslationUnit): units = [units] candidates = filter(self.usable, units) for candidate in candidates: |