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
db9bec87
Commit
db9bec87
authored
Oct 16, 2017
by
David Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement Alex's awesome idea of zlibbing the first stage too! Closes #49
parent
8dcfb1b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mitogen/master.py
mitogen/master.py
+2
-2
No files found.
mitogen/master.py
View file @
db9bec87
...
...
@@ -727,9 +727,9 @@ class Stream(mitogen.core.Stream):
source
=
textwrap
.
dedent
(
'
\
n
'
.
join
(
source
.
strip
().
split
(
'
\
n
'
)[
2
:]))
source
=
source
.
replace
(
' '
,
'
\
t
'
)
source
=
source
.
replace
(
'CONTEXT_NAME'
,
self
.
remote_name
)
encoded
=
source
.
encode
(
'base64'
).
replace
(
'
\
n
'
,
''
)
encoded
=
source
.
encode
(
'
zlib'
).
encode
(
'
base64'
).
replace
(
'
\
n
'
,
''
)
return
[
self
.
python_path
,
'-c'
,
'exec("%s".decode("base64"))'
%
(
encoded
,)]
'exec("%s".decode("base64")
.decode("zlib")
)'
%
(
encoded
,)]
def
get_preamble
(
self
):
parent_ids
=
mitogen
.
parent_ids
[:]
...
...
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