Use float for size calculation. fix #643
This commit is contained in:
1 parent
ac91156288
commit
a3895dd176
2 files changed
+7
-8
No files matched your search
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user