summaryrefslogtreecommitdiff
path: root/python/src/mteval.pxi
diff options
context:
space:
mode:
Diffstat (limited to 'python/src/mteval.pxi')
-rw-r--r--python/src/mteval.pxi2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/src/mteval.pxi b/python/src/mteval.pxi
index f1b6b5d1..00355f96 100644
--- a/python/src/mteval.pxi
+++ b/python/src/mteval.pxi
@@ -127,7 +127,7 @@ cdef class Scorer:
del self.name
def __call__(self, refs):
- if isinstance(refs, unicode) or isinstance(refs, str):
+ if isinstance(refs, basestring):
refs = [refs]
cdef vector[vector[WordID]]* refsv = new vector[vector[WordID]]()
cdef vector[WordID]* refv