Fix compatibility with Python 2.6 (does not support the set syntax).

This commit is contained in:
Valentin Lorentz 2014-01-26 21:14:21 +01:00
parent 80aa419035
commit a7f750d273

View File

@ -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)