Removes commented-out code.
Project description
eradicate removes commented-out code from Python files.
With modern revision control available there is no reason to save junk comments to the repository. eradicate helps cleans up existing junk.
Example
$ eradicate --in-place example.py
Before:
#a = 3 a = 4 #foo(1, 2, 3) def foo(x, y, z): #print('hello') print(x, y, z)
after:
a = 4 def foo(x, y, z): print(x, y, z)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
eradicate-0.0.2.tar.gz
(3.1 kB
view details)
File details
Details for the file eradicate-0.0.2.tar.gz
.
File metadata
- Download URL: eradicate-0.0.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64e5a1535ecb8f92e9631cdb225e8ca4095773854183c7a84d289365e89bd359 |
|
MD5 | 22189ac1857abc8f895e0a6459ad15cc |
|
BLAKE2b-256 | dc32b22fca5d42dca928c1d6472583055527d04cdd4388cfd0b804574271bec8 |