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)
|
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):
|
if not os.path.exists(filename):
|
||||||
print("[-] %s is doesn't exist." % filename)
|
print("[-] %s is doesn't exist." % filename)
|
||||||
return False
|
return False
|
||||||
@ -72,7 +72,7 @@ def show_meta(filename: str):
|
|||||||
__print_meta(filename, p.get_meta())
|
__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
|
padding = " " * depth*2
|
||||||
if not metadata:
|
if not metadata:
|
||||||
print(padding + "No metadata found")
|
print(padding + "No metadata found")
|
||||||
|
@ -173,7 +173,7 @@ class Mat2Extension(GObject.GObject, Nautilus.MenuProvider, Nautilus.LocationWid
|
|||||||
if fname is None:
|
if fname is None:
|
||||||
self.infobar_hbox.destroy()
|
self.infobar_hbox.destroy()
|
||||||
self.infobar.hide()
|
self.infobar.hide()
|
||||||
if len(self.failed_items):
|
if self.failed_items:
|
||||||
self.__infobar_failure()
|
self.__infobar_failure()
|
||||||
if not processing_queue.empty():
|
if not processing_queue.empty():
|
||||||
print("Something went wrong, the queue isn't empty :/")
|
print("Something went wrong, the queue isn't empty :/")
|
||||||
|
Loading…
Reference in New Issue
Block a user