Commit 1327089a authored by georg's avatar georg Committed by jvoisin

Small fixes for newer pylint versions

parent 459ed074
......@@ -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")
......
......@@ -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 :/")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment