Fix bug with Python 3.3 (?)

This commit is contained in:
Valentin Lorentz 2013-06-06 05:49:25 +00:00
parent 43563bcc1c
commit e24ab4501d
1 changed files with 2 additions and 2 deletions

View File

@ -52,8 +52,8 @@ def abbrev(strings, d=None):
for i in xrange(1, len(s)+1):
yield s[:i]
if len(strings) != len(set(strings)):
raise ValueError, \
'strings given to utils.abbrev have duplicates: %r' % strings
raise ValueError(
'strings given to utils.abbrev have duplicates: %r' % strings)
if d is None:
d = {}
for s in strings: