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
juga
sbws
Commits
0e49c8f9
Commit
0e49c8f9
authored
Aug 30, 2018
by
juga
Browse files
Fix args initializing V3BWLine from lines
parent
e62a0354
Changes
1
Hide whitespace changes
Inline
Side-by-side
sbws/lib/v3bwfile.py
View file @
0e49c8f9
...
@@ -278,7 +278,11 @@ class V3BWLine(object):
...
@@ -278,7 +278,11 @@ class V3BWLine(object):
for
k
,
v
in
kwargs
.
items
():
for
k
,
v
in
kwargs
.
items
():
if
k
in
BW_KEYVALUES_INT
:
if
k
in
BW_KEYVALUES_INT
:
kwargs
[
k
]
=
int
(
v
)
kwargs
[
k
]
=
int
(
v
)
bw_line
=
cls
(
**
kwargs
)
node_id
=
kwargs
[
'node_id'
]
bw
=
kwargs
[
'bw'
]
del
kwargs
[
'node_id'
]
del
kwargs
[
'bw'
]
bw_line
=
cls
(
node_id
,
bw
,
**
kwargs
)
return
bw_line
return
bw_line
@
staticmethod
@
staticmethod
...
...
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