Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bis-aria
ariaec
Commits
a8d66dc6
Commit
a8d66dc6
authored
Mar 15, 2019
by
Fabrice Allain
Browse files
fix: implement setting.get method used within pdbqual tool
parent
1832c26d
Changes
1
Hide whitespace changes
Inline
Side-by-side
aria/conbox/settings.py
View file @
a8d66dc6
...
...
@@ -34,8 +34,8 @@ class Setting(object):
raise
KeyError
(
item
)
def
get
(
self
,
key
,
default
=
None
):
return
self
.
config
[
key
]
if
key
in
self
.
config
else
self
.
args
[
key
]
if
key
in
self
.
args
else
default
return
self
.
config
[
key
]
if
key
in
self
.
config
else
self
.
args
[
key
]
\
if
key
in
self
.
args
else
default
def
__repr__
(
self
):
return
"Setting object
\n
config: %s
\n
args : %s"
%
(
self
.
config
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment