Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Lee McCuller
guardian
Commits
2808e4fe
Commit
2808e4fe
authored
Jan 19, 2018
by
Jameson Rollins
Browse files
python3: cast dict.items() to list when using +
parent
947f60f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/guardian/cli.py
View file @
2808e4fe
from
.system
import
GuardSystemLoadError
def
add_grd_arg
(
parser
,
*
args
,
**
kwargs
):
"""Add common argument to argparse parser"""
...
...
@@ -24,7 +25,7 @@ def add_grd_arg(parser, *args, **kwargs):
}
parser
.
add_argument
(
*
args
,
**
dict
(
parserargs
[
args
].
items
()
+
kwargs
.
items
()))
**
dict
(
list
(
parserargs
[
args
].
items
()
)
+
list
(
kwargs
.
items
()))
)
def
init_system
(
args
,
load
=
False
):
"""Initialize (and optionally load) system module
...
...
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