mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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:
|
||||
self._hostmaskCache[id].add(s)
|
||||
except KeyError:
|
||||
self._hostmaskCache[id] = {s}
|
||||
self._hostmaskCache[id] = set([s])
|
||||
return id
|
||||
elif len(ids) == 0:
|
||||
raise KeyError(s)
|
||||
|
Loading…
Reference in New Issue
Block a user