mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Fix bug with Python 3.3 (?)
This commit is contained in:
parent
43563bcc1c
commit
e24ab4501d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user