mirror of
https://github.com/arsenetar/dupeguru.git
synced 2024-10-31 22:05:58 +00:00
Black formatting changes
This commit is contained in:
parent
b7d68b4458
commit
85e22089bd
@ -507,7 +507,6 @@ if ISWINDOWS:
|
|||||||
def has_sep(regexp):
|
def has_sep(regexp):
|
||||||
return "\\" + sep in regexp
|
return "\\" + sep in regexp
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
def has_sep(regexp):
|
def has_sep(regexp):
|
||||||
|
@ -63,7 +63,6 @@ try:
|
|||||||
appname = proxy.bundleInfo_("CFBundleName")
|
appname = proxy.bundleInfo_("CFBundleName")
|
||||||
return op.join(base, appname)
|
return op.join(base, appname)
|
||||||
|
|
||||||
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
try:
|
||||||
from PyQt5.QtCore import QUrl, QStandardPaths
|
from PyQt5.QtCore import QUrl, QStandardPaths
|
||||||
|
@ -226,7 +226,7 @@ def format_time_decimal(seconds):
|
|||||||
|
|
||||||
|
|
||||||
SIZE_DESC = ("B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB")
|
SIZE_DESC = ("B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB")
|
||||||
SIZE_VALS = tuple(1024 ** i for i in range(1, 9))
|
SIZE_VALS = tuple(1024**i for i in range(1, 9))
|
||||||
|
|
||||||
|
|
||||||
def format_size(size, decimal=0, forcepower=-1, showdesc=True):
|
def format_size(size, decimal=0, forcepower=-1, showdesc=True):
|
||||||
@ -258,7 +258,7 @@ def format_size(size, decimal=0, forcepower=-1, showdesc=True):
|
|||||||
if decimal == 0:
|
if decimal == 0:
|
||||||
divided_size = ceil(divided_size)
|
divided_size = ceil(divided_size)
|
||||||
else:
|
else:
|
||||||
divided_size = ceil(divided_size * (10 ** decimal)) / (10 ** decimal)
|
divided_size = ceil(divided_size * (10**decimal)) / (10**decimal)
|
||||||
if negative:
|
if negative:
|
||||||
divided_size *= -1
|
divided_size *= -1
|
||||||
result = size_format % divided_size
|
result = size_format % divided_size
|
||||||
|
Loading…
Reference in New Issue
Block a user