mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Fix compatibility with Python 2.6 (does not support the set syntax).
This commit is contained in:
parent
80aa419035
commit
a7f750d273
@ -693,7 +693,7 @@ class UsersDictionary(utils.IterableMap):
|
|||||||
try:
|
try:
|
||||||
self._hostmaskCache[id].add(s)
|
self._hostmaskCache[id].add(s)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
self._hostmaskCache[id] = {s}
|
self._hostmaskCache[id] = set([s])
|
||||||
return id
|
return id
|
||||||
elif len(ids) == 0:
|
elif len(ids) == 0:
|
||||||
raise KeyError(s)
|
raise KeyError(s)
|
||||||
|
Loading…
Reference in New Issue
Block a user