Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
verktoy
PyMetric
Commits
cdce87ad
Commit
cdce87ad
authored
Dec 02, 2019
by
Runar Borge
Browse files
Fixes
#12
Missing variables on string formatting
In the "No valid path" strings it prints %s instead of node names
parent
35eb131f
Changes
1
Hide whitespace changes
Inline
Side-by-side
command.py
View file @
cdce87ad
...
...
@@ -942,7 +942,7 @@ class MetricShell(Cmd):
length
,
paths
=
self
.
simulation
.
path
(
a
,
b
)
if
not
length
and
not
paths
:
print
(
"No valid path from %s to %s in model"
)
print
(
"No valid path from %s to %s in model"
%
(
a
,
b
)
)
return
print
(
"Path from %s to %s:"
\
...
...
@@ -1129,7 +1129,7 @@ class MetricShell(Cmd):
length
,
paths
=
self
.
model
.
path
(
a
,
b
)
if
not
length
and
not
paths
:
print
(
"No valid path from %s to %s in model"
)
print
(
"No valid path from %s to %s in model"
%
(
a
,
b
)
)
return
print
(
"Path from %s to %s:"
\
...
...
Write
Preview
Markdown
is supported
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