Skip to content

Commit

Permalink
Experimental: mitogen: Remove minification of Python source code
Browse files Browse the repository at this point in the history
Done on the basis that sending a few more bytes of the network is quicker than
tokenizing and untokeninzing the modules.
  • Loading branch information
moreati committed Jul 28, 2023
1 parent ec212a1 commit 2c7f2b4
Show file tree
Hide file tree
Showing 36 changed files with 6 additions and 766 deletions.
1 change: 0 additions & 1 deletion ansible_mitogen/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

# !mitogen: minify_safe

"""
These classes implement execution for each style of Ansible module. They are
Expand Down
1 change: 0 additions & 1 deletion ansible_mitogen/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

# !mitogen: minify_safe

"""
Classes in this file define Mitogen 'services' that run (initially) within the
Expand Down
1 change: 0 additions & 1 deletion ansible_mitogen/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

# !mitogen: minify_safe

"""
Helper functions intended to be executed on the target. These are entrypoints
Expand Down
4 changes: 0 additions & 4 deletions docs/internals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,6 @@ Helpers
.. currentmodule:: mitogen.master
.. autofunction:: get_child_modules

.. currentmodule:: mitogen.minify
.. autofunction:: minimize_source


.. _signals:

Signals
Expand Down
1 change: 0 additions & 1 deletion mitogen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

# !mitogen: minify_safe

"""
On the Mitogen master, this is imported from ``mitogen/__init__.py`` as would
Expand Down
1 change: 0 additions & 1 deletion mitogen/buildah.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

# !mitogen: minify_safe

import logging

Expand Down
1 change: 0 additions & 1 deletion mitogen/compat/pkgutil.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Utilities to support packages."""

# !mitogen: minify_safe

# NOTE: This module must remain compatible with Python 2.3, as it is shared
# by setuptools for distribution with Python 2.3 and up.
Expand Down
Loading

0 comments on commit 2c7f2b4

Please sign in to comment.