-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
You can now use pyminifier as an executable module: `python -m pymini…
…fier` will work just like running '/usr/local/bin/pyminifier'. Fixed issue #33 where minifying multiple files into a destination dir (`--destdir`) was not working properly. Thanks Sjef de Krijger for emailing me a patch. His patch also fixed the `--prepend` option which wasn't working properly when minifying/obfuscating multiple files. __init__.py: Added some of the recently-added features to the global docstring. __init__.py: Added a docstring to the `pyminify()` function. __main__.py: Added a docstring to the `main()` function. analyze.py: The `enumerate_imports()` and `enumerate_global_imports()` functions now skip 'from' import lines like, `from foo import bar` since those aren't being handled correctly by the `enumerate_local_modules()` function inside of obfuscate.py. This is just a temporary measure until I get the logic in order for differentiating between "from whatever import foo" and having a "foo.py" in the same directory. obfuscate.py: Fixed a bug where variables being passed as arguments (right of an equal sign) were not being obfuscated when they should be. All over: Modernized some strings here and there by converting them to use `format()` and cleaned up a few things to improve code readability/presentation.
- Loading branch information
Showing
5 changed files
with
101 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters