mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-06-02 16:39:42 +02:00
remove dead code
This commit is contained in:
parent
c2376e6a44
commit
51c4d457b1
|
@ -88,7 +88,6 @@ class Annotation:
|
||||||
item = AnnotationItem()
|
item = AnnotationItem()
|
||||||
|
|
||||||
# step1 remove the annotation
|
# step1 remove the annotation
|
||||||
# reg1 = "(\#\ *\@"++"\ *)"
|
|
||||||
reg1 = r"(\#\ *\@" + name + r"\ *)"
|
reg1 = r"(\#\ *\@" + name + r"\ *)"
|
||||||
line1 = re.sub(reg1, "", line).strip()
|
line1 = re.sub(reg1, "", line).strip()
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,6 @@ class Parser:
|
||||||
self._files_registry = Registry()
|
self._files_registry = Registry()
|
||||||
self._parse_meta_file()
|
self._parse_meta_file()
|
||||||
self._parse_var_files()
|
self._parse_var_files()
|
||||||
# self._parse_task_tags()
|
|
||||||
self._populate_doc_data()
|
self._populate_doc_data()
|
||||||
|
|
||||||
def _parse_var_files(self):
|
def _parse_var_files(self):
|
||||||
|
|
|
@ -268,7 +268,7 @@ class FileUtils:
|
||||||
prompt = "[N/y]"
|
prompt = "[N/y]"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# input() is safe in python3
|
# input method is safe in python3
|
||||||
choice = input("{} {} ".format(question, prompt)) or default # nosec
|
choice = input("{} {} ".format(question, prompt)) or default # nosec
|
||||||
return to_bool(choice)
|
return to_bool(choice)
|
||||||
except (KeyboardInterrupt, ValueError) as e:
|
except (KeyboardInterrupt, ValueError) as e:
|
||||||
|
|
|
@ -8,6 +8,7 @@ flake8-isort
|
||||||
flake8-logging-format
|
flake8-logging-format
|
||||||
flake8-polyfill
|
flake8-polyfill
|
||||||
flake8-quotes
|
flake8-quotes
|
||||||
|
flake8-eradicate
|
||||||
pep8-naming
|
pep8-naming
|
||||||
wheel
|
wheel
|
||||||
pytest
|
pytest
|
||||||
|
|
Loading…
Reference in New Issue
Block a user