diff --git a/evennia/commands/default/admin.py b/evennia/commands/default/admin.py index 602f2a0413..8f7b558584 100644 --- a/evennia/commands/default/admin.py +++ b/evennia/commands/default/admin.py @@ -212,7 +212,7 @@ class CmdBan(COMMAND_DEFAULT_CLASS): typ = "IP" ban = ipban[0] # replace * with regex form and compile it - ipregex = ban.replace(".", "\.") + ipregex = ban.replace(".", r"\.") ipregex = ipregex.replace("*", "[0-9]{1,3}") ipregex = re.compile(r"%s" % ipregex) bantup = ("", ban, ipregex, now, reason) diff --git a/evennia/commands/default/building.py b/evennia/commands/default/building.py index 710e6f87cb..7a081d02ad 100644 --- a/evennia/commands/default/building.py +++ b/evennia/commands/default/building.py @@ -3249,7 +3249,7 @@ class CmdFind(COMMAND_DEFAULT_CLASS): try: # Check that rhs is either a valid dbref or dbref range 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 diff --git a/evennia/comms/comms.py b/evennia/comms/comms.py index 56338c1d2c..78811572c2 100644 --- a/evennia/comms/comms.py +++ b/evennia/comms/comms.py @@ -814,7 +814,7 @@ class DefaultChannel(ChannelDB, metaclass=TypeclassBase): return "#" def web_get_detail_url(self): - """ + r""" Returns the URI path for a View that allows users to view details for this object. @@ -850,7 +850,7 @@ class DefaultChannel(ChannelDB, metaclass=TypeclassBase): return "#" def web_get_update_url(self): - """ + r""" Returns the URI path for a View that allows users to update this object. @@ -886,7 +886,7 @@ class DefaultChannel(ChannelDB, metaclass=TypeclassBase): return "#" def web_get_delete_url(self): - """ + r""" Returns the URI path for a View that allows users to delete this object. ex. Oscar (Character) = '/characters/oscar/1/delete/' diff --git a/evennia/help/filehelp.py b/evennia/help/filehelp.py index ff2d18f6b8..8e1bb1e946 100644 --- a/evennia/help/filehelp.py +++ b/evennia/help/filehelp.py @@ -128,7 +128,7 @@ class FileHelpEntry: return LockHandler(self) def web_get_detail_url(self): - """ + r""" Returns the URI path for a View that allows users to view details for this object.