summaryrefslogtreecommitdiff
path: root/cmd2/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2/utils.py')
-rw-r--r--cmd2/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/utils.py b/cmd2/utils.py
index 7f7a9b48..ddd43507 100644
--- a/cmd2/utils.py
+++ b/cmd2/utils.py
@@ -229,7 +229,7 @@ def natural_keys(input_str: str) -> List[Union[int, str]]:
:param input_str: string to convert
:return: list of strings and integers
"""
- return [try_int_or_force_to_lower_case(substr) for substr in re.split('(\d+)', input_str)]
+ return [try_int_or_force_to_lower_case(substr) for substr in re.split(r'(\d+)', input_str)]
def natural_sort(list_to_sort: Iterable[str]) -> List[str]: