diff --git a/src/ircutils.py b/src/ircutils.py index d8c67a78a..815259060 100644 --- a/src/ircutils.py +++ b/src/ircutils.py @@ -140,7 +140,7 @@ def isChannel(s, chantypes='#&+!', channellen=50): len(s) <= channellen and \ len(s.split(None, 1)) == 1 -_patternCache = utils.structures.CacheDict(1000) # Arbitrarily chosen. +_patternCache = utils.structures.CacheDict(1000) def _hostmaskPatternEqual(pattern, hostmask): try: return _patternCache[pattern](hostmask) is not None @@ -168,7 +168,7 @@ def _hostmaskPatternEqual(pattern, hostmask): _patternCache[pattern] = f return f(hostmask) is not None -_hostmaskPatternEqualCache = utils.structures.CacheDict{1000) # Arbitrarily chosen.} +_hostmaskPatternEqualCache = utils.structures.CacheDict(1000) def hostmaskPatternEqual(pattern, hostmask): """pattern, hostmask => bool Returns True if hostmask matches the hostmask pattern pattern."""