summaryrefslogtreecommitdiff
path: root/miniircd
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2011-08-20 22:10:48 +0200
committerJoel Rosdahl <joel@rosdahl.net>2011-08-21 15:57:19 +0200
commitc01f70a7cb7161c6eafb5cef3764f155abcdbf67 (patch)
tree68252d8448a71ddc455e8140c977e5c279473eb6 /miniircd
parent449da7e66ab11a85b2b7d6684848b050674ed152 (diff)
downloadminiircd-c01f70a7cb7161c6eafb5cef3764f155abcdbf67.tar.gz
miniircd-c01f70a7cb7161c6eafb5cef3764f155abcdbf67.zip
Use raw strings for regexps
Diffstat (limited to 'miniircd')
-rwxr-xr-xminiircd6
1 files changed, 3 insertions, 3 deletions
diff --git a/miniircd b/miniircd
index 354ff65..d5891a7 100755
--- a/miniircd
+++ b/miniircd
@@ -50,12 +50,12 @@ class Channel(object):
self.server.remove_channel(self)
class Client(object):
- __linesep_regexp = re.compile("\r?\n")
+ __linesep_regexp = re.compile(r"\r?\n")
# The RFC limit for nicknames is 9 characters, but what the heck.
__valid_nickname_regexp = re.compile(
- "^[][\`_^{|}A-Za-z][][\`_^{|}A-Za-z0-9]{0,50}$")
+ r"^[][\`_^{|}A-Za-z][][\`_^{|}A-Za-z0-9]{0,50}$")
__valid_channelname_regexp = re.compile(
- "^[&#+!][^\x00\x07\x0a\x0d ,:]{0,50}$")
+ r"^[&#+!][^\x00\x07\x0a\x0d ,:]{0,50}$")
def __init__(self, server, socket):
self.server = server