Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--translate-toolkit-1.5.1/translate/search/match.py4
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: