Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xml_marshaller
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
xml_marshaller
Commits
f91f3e48
Commit
f91f3e48
authored
Sep 12, 2018
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! xml_marshaller: add support for Python 3
parent
598193ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/xml_marshaller/xml_marshaller.py
src/xml_marshaller/xml_marshaller.py
+4
-2
No files found.
src/xml_marshaller/xml_marshaller.py
View file @
f91f3e48
...
...
@@ -596,11 +596,13 @@ class Unmarshaller(ElementTreeContentHandler):
try
:
value
=
klass
(
*
initargs
)
except
TypeError
as
err
:
reraise
(
TypeError
,
'in constructor for %s: %s'
%
(
klass
.
__name__
,
err
),
sys
.
exc_info
()[
2
])
reraise
(
TypeError
,
TypeError
(
'in constructor for %s: %s'
%
(
klass
.
__name__
,
err
)
)
,
sys
.
exc_info
()[
2
])
# Now set the object's attributes from the marshalled dictionary
for
k
,
v
in
kw
.
items
():
if
not
isinstance
(
k
,
str
):
k
=
k
.
decode
()
setattr
(
value
,
k
,
v
)
self
.
data_stack
[
-
5
:]
=
[
value
]
...
...
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