Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
252bf5c7
Commit
252bf5c7
authored
Oct 01, 2014
by
Kyle Beauchamp
Browse files
Added fix for #632
parent
deebf493
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wrappers/python/src/swig_doxygen/swig_lib/python/pythoncode.i
...pers/python/src/swig_doxygen/swig_lib/python/pythoncode.i
+2
-2
No files found.
wrappers/python/src/swig_doxygen/swig_lib/python/pythoncode.i
View file @
252bf5c7
...
@@ -75,12 +75,12 @@ class State(_object):
...
@@ -75,12 +75,12 @@ class State(_object):
self
.
_paramMap
=
paramMap
self
.
_paramMap
=
paramMap
def
__getstate__
(
self
)
:
def
__getstate__
(
self
)
:
serializationString
=
XmlSerializer
.
serialize
State
(
self
)
serializationString
=
XmlSerializer
.
serialize
(
self
)
return
serializationString
return
serializationString
def
__setstate__
(
self
,
serializationString
)
:
def
__setstate__
(
self
,
serializationString
)
:
print
'
calling
set
state
'
print
'
calling
set
state
'
dState
=
XmlSerializer
.
deserialize
State
(
serializationString
)
dState
=
XmlSerializer
.
deserialize
(
serializationString
)
#
Safe
provided
no
__slots__
or
other
weird
things
are
used
#
Safe
provided
no
__slots__
or
other
weird
things
are
used
self
.
__dict__
.
update
(
dState
.
__dict__
)
self
.
__dict__
.
update
(
dState
.
__dict__
)
...
...
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