Commit: a65d5dadeb610a8262acb0d9a57b3a15eec14e96 Author: Erik Abrahamsson Date: Mon Apr 26 09:38:35 2021 +0200 Branches: blender-v2.93-release https://developer.blender.org/rBa65d5dadeb610a8262acb0d9a57b3a15eec14e96
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 =================================================================== M release/scripts/modules/bpy_types.py =================================================================== 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) _______________________________________________ Bf-blender-cvs mailing list [email protected] https://lists.blender.org/mailman/listinfo/bf-blender-cvs
