Skip to content

Commit 9fbd993

Browse files
committed
Remove pyflakes error
modified: plugins/sqlite.py modified: report.py modified: test/report_diff_test.py
1 parent 1abccd6 commit 9fbd993

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

libnmap/plugins/sqlite.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
import sqlite3
33

4-
from libnmap.report import NmapReport
4+
#from libnmap.report import NmapReport
55
from libnmap.plugins.backendplugin import NmapBackendPlugin
66

77

@@ -15,8 +15,6 @@ def __init__(self, dbname=None):
1515
(date text, trans text, symbol text, qty real, price real)''')
1616

1717
def db_insert(self, nmap_report):
18-
nr = NmapReport()
19-
2018
pass
2119

2220
def db_get(self, report_id=None):

libnmap/report.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import sys
33
import inspect
44
from libnmap.diff import NmapDiff
5-
from libnmap.plugins.backendplugin import NmapBackendPlugin
5+
#from libnmap.plugins.backendplugin import NmapBackendPlugin
66

77

88
class NmapReport(object):
@@ -16,16 +16,20 @@ def __init__(self, name='', raw_data=None):
1616
self.set_raw_data(raw_data)
1717

1818
def report_export(self, file_path, output='csv'):
19+
"""DEPRECATED"""
1920
return 0
2021

2122
def read_fromfile(self, file_path):
23+
"""DEPRECATED"""
2224
self.report_import(file_path)
2325
return self.get_raw_data()
2426

2527
def write_tofile(self, file_path, output='csv'):
28+
"""DEPRECATED"""
2629
return self.report_export(file_path, output)
2730

2831
def db(self, plugin_name="mongodb", **kwargs):
32+
"""DEPRECATED"""
2933
r = None
3034
plugin_path = "libnmap.plugins.%s" % (plugin_name)
3135
__import__(plugin_path)

libnmap/test/report_diff_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import unittest
44
import os
55
from libnmap.parser import NmapParser
6-
from libnmap.report import NmapReport
6+
#from libnmap.report import NmapReport
77

88

99
class TestNmapReportDiff(unittest.TestCase):

0 commit comments

Comments
 (0)