Cosmetic change to a variable name.

This commit is contained in:
Jeremy Fincher 2003-10-25 18:28:36 +00:00
parent 0f45fe2c36
commit 6077e2896b

View File

@ -95,11 +95,11 @@ def nickEqual(nick1, nick2):
return toLower(nick1) == toLower(nick2) return toLower(nick1) == toLower(nick2)
_nickchars = r'_[]\`^{}|-' _nickchars = r'_[]\`^{}|-'
_nickre = re.compile(r'^[A-Za-z%s][0-9A-Za-z%s]*$' % (re.escape(_nickchars), nickRe = re.compile(r'^[A-Za-z%s][0-9A-Za-z%s]*$' % (re.escape(_nickchars),
re.escape(_nickchars))) re.escape(_nickchars)))
def isNick(s): def isNick(s):
"""Returns True if s is a valid IRC nick.""" """Returns True if s is a valid IRC nick."""
if re.match(_nickre, s): if re.match(nickRe, s):
return True return True
else: else:
return False return False