Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
asn1-value-editor
Commits
74362e90
Commit
74362e90
authored
Jul 18, 2016
by
Maxime Perrotin
Browse files
Better reformat GSER strings
parent
fcaf4a22
Changes
1
Hide whitespace changes
Inline
Side-by-side
asn1_value_editor/vn.py
View file @
74362e90
...
...
@@ -170,8 +170,9 @@ def fromValueNotationToPySide(varName, string):
def
format_gser
(
gser
):
''' Reformat a GSER string '''
gser1
=
''
.
join
(
x
.
strip
()
for
x
in
gser
.
split
())
return
', '
.
join
(
gser1
.
split
(
','
)).
replace
(
':'
,
': '
)
return
', '
.
join
(
u
.
strip
()
for
u
in
' '
.
join
(
gser
.
split
())
.
split
(
','
)).
replace
(
' :'
,
':'
).
replace
(
'{ '
,
'{'
).
replace
(
' }'
,
'}'
)
def
toASN1ValueNotation
(
val
):
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment