Skip to content

Commit 9a66d3a

Browse files
authored
Merge pull request #876 from moreati/first-stage-space
mitogen.parent: Remove tabs from minimized first stage
2 parents b5ad3b7 + e6bc53c commit 9a66d3a

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ v0.3.1.dev0 (unreleased)
2626
* :gh:issue:`869` Continuous Integration tests now cover CentOS 6 & 8, Debian 9 & 11, Ubuntu 16.04 & 20.04
2727
* :gh:issue:`860` Add initial support for podman connection (w/o Ansible support yet)
2828
* :gh:issue:`873` `python -c ...` first stage no longer uses :py:mod:`platform`` to detect the macOS release
29+
* :gh:issue:`876` `python -c ...` first stage no longer contains tab characters, to reduce size
2930

3031

3132
v0.3.0 (2021-11-24)

mitogen/parent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,7 @@ def get_python_argv(self):
14671467
def get_boot_command(self):
14681468
source = inspect.getsource(self._first_stage)
14691469
source = textwrap.dedent('\n'.join(source.strip().split('\n')[2:]))
1470-
source = source.replace(' ', '\t')
1470+
source = source.replace(' ', ' ')
14711471
source = source.replace('CONTEXT_NAME', self.options.remote_name)
14721472
preamble_compressed = self.get_preamble()
14731473
source = source.replace('PREAMBLE_COMPRESSED_LEN',

preamble_size.py

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
"""
23
Print the size of a typical SSH command line and the bootstrap code sent to new
34
contexts.

0 commit comments

Comments
 (0)