From d6fa8632929cbf3510f21b829774f0783864c895 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Tue, 5 Nov 2013 03:47:11 +0100 Subject: [PATCH] deleted never used parsers; we can invent them again --- linspector/parsers/__init__.py | 0 linspector/parsers/parser.py | 37 ---------------------------------- linspector/parsers/shell.py | 33 ------------------------------ 3 files changed, 70 deletions(-) delete mode 100644 linspector/parsers/__init__.py delete mode 100644 linspector/parsers/parser.py delete mode 100644 linspector/parsers/shell.py diff --git a/linspector/parsers/__init__.py b/linspector/parsers/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/linspector/parsers/parser.py b/linspector/parsers/parser.py deleted file mode 100644 index 353d3ee..0000000 --- a/linspector/parsers/parser.py +++ /dev/null @@ -1,37 +0,0 @@ -""" -Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" - -This file is part of Linspector (http://linspector.org). - -Linspector is free software: you can redistribute it and/or modify -it under the terms of the GNU Affero General Public License as -published by the Free Software Foundation, either version 3 of the -License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU Affero General Public License for more details. - -You should have received a copy of the GNU Affero General Public License -along with this program. If not, see . -""" - -from logging import getLogger - -logger = getLogger(__name__) - - -class Parser: - def __init__(self, **kwargs): - pass - - def parse_data(self, data): - self.pre_parse(data) - return self.generate_parse_result(data) - - def pre_parse(self, data): - pass - - def generate_parse_result(self, result): - pass \ No newline at end of file diff --git a/linspector/parsers/shell.py b/linspector/parsers/shell.py deleted file mode 100644 index 0470c21..0000000 --- a/linspector/parsers/shell.py +++ /dev/null @@ -1,33 +0,0 @@ -""" -Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" - -This file is part of Linspector (http://linspector.org). - -Linspector is free software: you can redistribute it and/or modify -it under the terms of the GNU Affero General Public License as -published by the Free Software Foundation, either version 3 of the -License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU Affero General Public License for more details. - -You should have received a copy of the GNU Affero General Public License -along with this program. If not, see . -""" - -from logging import getLogger - -from linspector.parsers.parser import Parser - -logger = getLogger(__name__) - - -class ShellParser(Parser): - def __init__(self, **kwargs): - pass - - -def create(kwargs): - return ShellParser(**kwargs) \ No newline at end of file