diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2018-01-22 20:17:17 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2018-01-22 20:17:17 +0300 |
commit | acc487641ad58c62691844afa2cdc7677093086d (patch) | |
tree | c6a5a1b8748ffcdef5eaaa6c9871b217c6d7cdac | |
parent | cf12bef544ac06051abe9a4a259cc95ea337504e (diff) |
Remove some unused imports
-rw-r--r-- | calm/maintainers.py | 1 | ||||
-rwxr-xr-x | calm/mkgitoliteconf.py | 2 | ||||
-rwxr-xr-x | calm/pkg2html.py | 1 | ||||
-rw-r--r-- | calm/spelling.py | 3 |
4 files changed, 1 insertions, 6 deletions
diff --git a/calm/maintainers.py b/calm/maintainers.py index 119c8b5..740f61d 100644 --- a/calm/maintainers.py +++ b/calm/maintainers.py @@ -39,7 +39,6 @@ import itertools import logging import os import re -import sys # # diff --git a/calm/mkgitoliteconf.py b/calm/mkgitoliteconf.py index bf243e6..42508b1 100755 --- a/calm/mkgitoliteconf.py +++ b/calm/mkgitoliteconf.py @@ -27,8 +27,6 @@ from collections import defaultdict import argparse -import logging -import os import sys from . import common_constants diff --git a/calm/pkg2html.py b/calm/pkg2html.py index d591b64..754ba5d 100755 --- a/calm/pkg2html.py +++ b/calm/pkg2html.py @@ -38,7 +38,6 @@ # flattened in the package listing to just the package name # -from collections import defaultdict import argparse import glob import html diff --git a/calm/spelling.py b/calm/spelling.py index 2b477c1..793edd1 100644 --- a/calm/spelling.py +++ b/calm/spelling.py @@ -21,7 +21,6 @@ # THE SOFTWARE. # -import logging import re from enchant import DictWithPWL from enchant.checker import SpellChecker @@ -125,7 +124,7 @@ def spellcheck_hints(args, packages): # XXX: this is doing all the work to generate suggestions, which # we then ignore, so could be written much more efficiently for err in chkr: - # logging.error("package '%s', hint '%s': Is '%s' a word?" % (p, k, err.word)) + # print("package '%s', hint '%s': Is '%s' a word?" % (p, k, err.word)) misspellings.setdefault(err.word, 0) misspellings[err.word] += 1 |