[Python-modules-commits] [python3-proselint] 02/04: Remove `--debug` clearcache functionality
Víctor Cuadrado Juan
viccuad-guest at moszumanska.debian.org
Thu Jun 16 08:23:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
viccuad-guest pushed a commit to branch master
in repository python3-proselint.
commit ac711e75abfd4f737aa95086803ae1296b8f3343
Author: Víctor Cuadrado Juan <me at viccuad.me>
Date: Thu Jun 16 09:38:57 2016 +0200
Remove `--debug` clearcache functionality
Fixes #821886
---
proselint/command_line.py | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/proselint/command_line.py b/proselint/command_line.py
index 8d1d6e4..911af52 100644
--- a/proselint/command_line.py
+++ b/proselint/command_line.py
@@ -108,16 +108,6 @@ def timing_test(corpus="0.1.0"):
return time.time() - start
-def clear_cache():
- """Delete the contents of the cache."""
- click.echo("Deleting the cache...")
- subprocess.call("find . -name '*.pyc' -delete", shell=True)
- subprocess.call(
- "rm -rfv proselint/cache > /dev/null && mkdir -p {}".format(
- os.path.join(os.path.expanduser("~"), ".proselint")),
- shell=True)
-
-
def errors_to_json(errors):
"""Convert the errors to JSON."""
out = []
@@ -188,10 +178,6 @@ def proselint(paths=None, version=None, initialize=None, clean=None,
click.echo(lintscore())
return
- # In debug or clean mode, delete cache & *.pyc files before running.
- if debug or clean:
- clear_cache()
-
# Use the demo file by default.
if demo:
paths = [demo_file]
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python3-proselint.git
More information about the Python-modules-commits
mailing list