Mirror of mitogen
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Alex Willmer a1e9b9e8db Issue #160: Reimplement minimize_source as token filters
Benefits:

- More correct than re.sub()
- Better handling of trailing whitespace
- Recognises doc-strings regardless of quoting style

Limitations:

- Still not entirely correct
  - Creates a syntax error when function/class body is only a docstring
  - Doesn't handle indented docstrings yet
- Slower by 50x - 8-10 ms vs 0.2 ms for re.sub()
  - Not much scope for improving this, tokenize is 100% pure Python
- Complex state machine, harder to understand
- Higher line count in parent.py
- Untested with Mitogen parent on Python 2.x and child on Python 2.x+y

No change

- Only requires Python stdlib modules
7 years ago
ansible_mitogen ansible: split environment editing into a separate class. 7 years ago
docs docs: fix reading time tracking :( 7 years ago
examples issue #152: reproduction for second problem 7 years ago
mitogen Issue #160: Reimplement minimize_source as token filters 7 years ago
tests Issue #160: Add minimize_source testcases 7 years ago
.gitignore Some gitignore extras 7 years ago
.lgtm.yml compat: ignore LGTM checks on third party 7 years ago
.travis.yml Remove overall build timeout from .travis.yml. 7 years ago
LICENSE Add license text everywhere. 7 years ago
README.md README: move testing bits into tests directory. 7 years ago
dev_requirements.txt Add Google Cloud client to dev requirements 7 years ago
preamble_size.py preamble_size: Print compressed size and percentage 7 years ago
setup.cfg Initial flake8 configuration. 7 years ago
setup.py setup: Scan project dir to find packages 7 years ago
test.sh Issue #160: Add minimize_source testcases 7 years ago
tox.ini tests: Add Tox config for Python 2.6 and 2.7 7 years ago

README.md