Skip to content

Commit

Permalink
Merge pull request #171 from tmaeno/master
Browse files Browse the repository at this point in the history
fixed errors in conbridge
  • Loading branch information
tmaeno authored Nov 15, 2022
2 parents 7226d0c + 8fdcee2 commit cf9de93
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PandaPkgInfo.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
release_version = "0.0.43"
release_version = "0.0.44"
19 changes: 19 additions & 0 deletions pandaserver/taskbuffer/WorkerSpec.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,22 @@ def bindUpdateChangesExpression(self):
ret += '{0}=:{0},'.format(attr)
ret = ret[:-1]
return ret

# return state values to be pickled
def __getstate__(self):
state = []
for attr in self._attributes:
val = getattr(self, attr)
state.append(val)
state.append(self._changedAttrs)
return state

# restore state from the unpickled state values
def __setstate__(self, state):
i = 0
for attr in self._attributes:
if i >= len(state)-1:
break
object.__setattr__(self, attr, state[i])
i += 1
object.__setattr__(self, '_changedAttrs', state[-1])

0 comments on commit cf9de93

Please sign in to comment.