From a65d5dadeb610a8262acb0d9a57b3a15eec14e96 Mon Sep 17 00:00:00 2001 From: Erik Abrahamsson Date: Mon, 26 Apr 2021 09:38:35 +0200 Subject: DeprecationWarning fix This gets rid of a `DeprecationWarning` in bpy_types.py caused by invalid escape sequences. More info here: https://docs.python.org/3/library/re.html Reviewed By: mont29 Differential Revision: https://developer.blender.org/D10998 --- release/scripts/modules/bpy_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'release') diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py index ee9115b6643..4ea8c88e8d9 100644 --- a/release/scripts/modules/bpy_types.py +++ b/release/scripts/modules/bpy_types.py @@ -923,7 +923,7 @@ class Menu(StructRNA, _GenericUI, metaclass=RNAMeta): # Perform a "natural sort", so 20 comes after 3 (for example). files.sort( key=lambda file_path: - tuple(int(t) if t.isdigit() else t for t in re.split("(\d+)", file_path[0].lower())), + tuple(int(t) if t.isdigit() else t for t in re.split(r"(\d+)", file_path[0].lower())), ) col = layout.column(align=True) -- cgit v1.2.3