1
0
mirror of synced 2024-11-22 01:04:23 +01:00

Small fixes for newer pylint versions

This commit is contained in:
georg 2019-02-28 15:47:16 +00:00 committed by jvoisin
parent 459ed07443
commit 1327089a30
2 changed files with 3 additions and 3 deletions

4
mat2
View File

@ -24,7 +24,7 @@ assert Union
logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.WARNING)
def __check_file(filename: str, mode: int=os.R_OK) -> bool:
def __check_file(filename: str, mode: int = os.R_OK) -> bool:
if not os.path.exists(filename):
print("[-] %s is doesn't exist." % filename)
return False
@ -72,7 +72,7 @@ def show_meta(filename: str):
__print_meta(filename, p.get_meta())
def __print_meta(filename: str, metadata: dict, depth: int=1):
def __print_meta(filename: str, metadata: dict, depth: int = 1):
padding = " " * depth*2
if not metadata:
print(padding + "No metadata found")

View File

@ -173,7 +173,7 @@ class Mat2Extension(GObject.GObject, Nautilus.MenuProvider, Nautilus.LocationWid
if fname is None:
self.infobar_hbox.destroy()
self.infobar.hide()
if len(self.failed_items):
if self.failed_items:
self.__infobar_failure()
if not processing_queue.empty():
print("Something went wrong, the queue isn't empty :/")