diff options
author | Erik Abrahamsson <erik85> | 2021-04-26 10:38:35 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-04-26 10:47:03 +0300 |
commit | a65d5dadeb610a8262acb0d9a57b3a15eec14e96 (patch) | |
tree | a201e453cd82f0c321a186dd1012bce526fcec09 /release | |
parent | a17ea1a6691920cc307f3e44dd285b2d8e8bdd35 (diff) |
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
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/modules/bpy_types.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |