Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mat2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jvoisin
mat2
Commits
1327089a
Commit
1327089a
authored
6 years ago
by
georg
Committed by
jvoisin
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Small fixes for newer pylint versions
parent
459ed074
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mat2
+2
-2
2 additions, 2 deletions
mat2
nautilus/mat2.py
+1
-1
1 addition, 1 deletion
nautilus/mat2.py
with
3 additions
and
3 deletions
mat2
+
2
−
2
View file @
1327089a
...
...
@@ -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
"
)
...
...
This diff is collapsed.
Click to expand it.
nautilus/mat2.py
+
1
−
1
View file @
1327089a
...
...
@@ -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 :/
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment