commit
a15bf66daf
4 changed files with 6 additions and 6 deletions
|
|
@ -212,7 +212,7 @@ class CmdBan(COMMAND_DEFAULT_CLASS):
|
||||||
typ = "IP"
|
typ = "IP"
|
||||||
ban = ipban[0]
|
ban = ipban[0]
|
||||||
# replace * with regex form and compile it
|
# replace * with regex form and compile it
|
||||||
ipregex = ban.replace(".", "\.")
|
ipregex = ban.replace(".", r"\.")
|
||||||
ipregex = ipregex.replace("*", "[0-9]{1,3}")
|
ipregex = ipregex.replace("*", "[0-9]{1,3}")
|
||||||
ipregex = re.compile(r"%s" % ipregex)
|
ipregex = re.compile(r"%s" % ipregex)
|
||||||
bantup = ("", ban, ipregex, now, reason)
|
bantup = ("", ban, ipregex, now, reason)
|
||||||
|
|
|
||||||
|
|
@ -3249,7 +3249,7 @@ class CmdFind(COMMAND_DEFAULT_CLASS):
|
||||||
try:
|
try:
|
||||||
# Check that rhs is either a valid dbref or dbref range
|
# Check that rhs is either a valid dbref or dbref range
|
||||||
bounds = tuple(
|
bounds = tuple(
|
||||||
sorted(dbref(x, False) for x in re.split("[-\s]+", self.rhs.strip()))
|
sorted(dbref(x, False) for x in re.split(r"[-\s]+", self.rhs.strip()))
|
||||||
)
|
)
|
||||||
|
|
||||||
# dbref() will return either a valid int or None
|
# dbref() will return either a valid int or None
|
||||||
|
|
|
||||||
|
|
@ -814,7 +814,7 @@ class DefaultChannel(ChannelDB, metaclass=TypeclassBase):
|
||||||
return "#"
|
return "#"
|
||||||
|
|
||||||
def web_get_detail_url(self):
|
def web_get_detail_url(self):
|
||||||
"""
|
r"""
|
||||||
Returns the URI path for a View that allows users to view details for
|
Returns the URI path for a View that allows users to view details for
|
||||||
this object.
|
this object.
|
||||||
|
|
||||||
|
|
@ -850,7 +850,7 @@ class DefaultChannel(ChannelDB, metaclass=TypeclassBase):
|
||||||
return "#"
|
return "#"
|
||||||
|
|
||||||
def web_get_update_url(self):
|
def web_get_update_url(self):
|
||||||
"""
|
r"""
|
||||||
Returns the URI path for a View that allows users to update this
|
Returns the URI path for a View that allows users to update this
|
||||||
object.
|
object.
|
||||||
|
|
||||||
|
|
@ -886,7 +886,7 @@ class DefaultChannel(ChannelDB, metaclass=TypeclassBase):
|
||||||
return "#"
|
return "#"
|
||||||
|
|
||||||
def web_get_delete_url(self):
|
def web_get_delete_url(self):
|
||||||
"""
|
r"""
|
||||||
Returns the URI path for a View that allows users to delete this object.
|
Returns the URI path for a View that allows users to delete this object.
|
||||||
|
|
||||||
ex. Oscar (Character) = '/characters/oscar/1/delete/'
|
ex. Oscar (Character) = '/characters/oscar/1/delete/'
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,7 @@ class FileHelpEntry:
|
||||||
return LockHandler(self)
|
return LockHandler(self)
|
||||||
|
|
||||||
def web_get_detail_url(self):
|
def web_get_detail_url(self):
|
||||||
"""
|
r"""
|
||||||
Returns the URI path for a View that allows users to view details for
|
Returns the URI path for a View that allows users to view details for
|
||||||
this object.
|
this object.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue