summaryrefslogtreecommitdiff
path: root/cmd2/utils.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-09-28 13:53:27 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-09-28 13:53:27 -0400
commit4b4b3ef1819dde1c6d1ea7a70bf67e805d23470d (patch)
tree1f39e0d9f1dd4327a3d54fc381901ba7b83ac6cd /cmd2/utils.py
parent35e99b267c61ba38023fadfa6687785357c74aaf (diff)
parented33f32b5924be3866c147bf8eaf088e65cd101d (diff)
downloadcmd2-git-4b4b3ef1819dde1c6d1ea7a70bf67e805d23470d.tar.gz
Merge branch 'macro' into argparse_conversion
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]: