Small fixes for newer pylint versions
This commit is contained in:
parent
459ed07443
commit
1327089a30
4
mat2
4
mat2
@ -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 :/")
|
||||
|
Loading…
Reference in New Issue
Block a user