Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mitogen
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
mitogen
Commits
9238e09a
Commit
9238e09a
authored
Feb 14, 2018
by
David Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: Restore behaviour of unpickling Router-specific Context subclass
parent
dd088908
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
mitogen/core.py
mitogen/core.py
+3
-1
No files found.
mitogen/core.py
View file @
9238e09a
...
...
@@ -794,7 +794,7 @@ def _unpickle_context(router, context_id, name):
assert
isinstance
(
router
,
Router
)
assert
isinstance
(
context_id
,
(
int
,
long
))
and
context_id
>
0
assert
isinstance
(
name
,
basestring
)
and
len
(
name
)
<
100
return
Context
(
router
,
context_id
,
name
)
return
router
.
context_class
(
router
,
context_id
,
name
)
class
Waker
(
BasicStream
):
...
...
@@ -883,6 +883,8 @@ class IoLogger(BasicStream):
class
Router
(
object
):
context_class
=
Context
def
__init__
(
self
,
broker
):
self
.
broker
=
broker
listen
(
broker
,
'shutdown'
,
self
.
on_broker_shutdown
)
...
...
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