From bb759259b8d4b07c4250d24090fe9d25e1e1440c Mon Sep 17 00:00:00 2001 From: James Vega Date: Fri, 3 Apr 2009 10:04:39 -0400 Subject: [PATCH] Remove useless comments and fix a SyntaxError Signed-off-by: James Vega --- src/ircutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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."""