Use float for size calculation. fix #643

This commit is contained in:
Ruud
2012-08-05 15:27:27 +02:00
parent ac91156288
commit a3895dd176
2 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ def tryInt(s):
def tryFloat(s):
try: return float(s) if '.' in s else tryInt(s)
except: return s
except: return 0
def natsortKey(s):
return map(tryInt, re.findall(r'(\d+|\D+)', s))