Python 3 transition comment

This commit is contained in:
M2j 2013-03-31 18:43:08 +02:00
parent 8696db9f75
commit b3bb9bc0c0

View File

@ -404,6 +404,9 @@ def get_natural_key(string):
"""
key = DIGITS_OR_NONDIGITS.findall(string)
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