forked from openlp/openlp
Python 3 transition comment
This commit is contained in:
parent
8696db9f75
commit
b3bb9bc0c0
@ -404,6 +404,9 @@ def get_natural_key(string):
|
|||||||
"""
|
"""
|
||||||
key = DIGITS_OR_NONDIGITS.findall(string)
|
key = DIGITS_OR_NONDIGITS.findall(string)
|
||||||
key = [int(part) if part.isdigit() else get_local_key(part) for part in key]
|
key = [int(part) if part.isdigit() else get_local_key(part) for part in key]
|
||||||
|
# Python 3 does not support comparision of different types anymore. So make sure, that we do not compare str and int.
|
||||||
|
#if string[0].isdigit():
|
||||||
|
# return [''] + key
|
||||||
return key
|
return key
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user