mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +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):
|
for i in xrange(1, len(s)+1):
|
||||||
yield s[:i]
|
yield s[:i]
|
||||||
if len(strings) != len(set(strings)):
|
if len(strings) != len(set(strings)):
|
||||||
raise ValueError, \
|
raise ValueError(
|
||||||
'strings given to utils.abbrev have duplicates: %r' % strings
|
'strings given to utils.abbrev have duplicates: %r' % strings)
|
||||||
if d is None:
|
if d is None:
|
||||||
d = {}
|
d = {}
|
||||||
for s in strings:
|
for s in strings:
|
||||||
|
Loading…
Reference in New Issue
Block a user