Commit c1cd60e0 authored by Ana Custura's avatar Ana Custura Committed by Karsten Loesing
Browse files

Removes unused import and do_complete attribute from tor parser

parent 95a2f8b4
......@@ -10,7 +10,7 @@ from abc import ABCMeta, abstractmethod
# stem imports
from stem import CircEvent, CircStatus, CircPurpose, StreamStatus
from import CircuitEvent, CircMinorEvent, StreamEvent, BandwidthEvent, BuildTimeoutSetEvent
from import CircuitEvent, CircMinorEvent, StreamEvent, BuildTimeoutSetEvent
from stem.response import ControlMessage, convert
# tgentools imports
......@@ -34,14 +34,14 @@ class OPAnalysis(Analysis):
self.date_filter = date_filter
tgen_parser = TGenParser(date_filter=self.date_filter)
torctl_parser = TorCtlParser(date_filter=self.date_filter)
for (filepaths, parser, json_db_key) in [(self.tgen_filepaths, tgen_parser, 'tgen'), (self.torctl_filepaths, torctl_parser, 'tor')]:
for (filepaths, parser, json_db_key) in [(self.torctl_filepaths, torctl_parser, 'tor')]:
if len(filepaths) > 0:
for filepath in filepaths:"parsing log file at {0}".format(filepath))
parser.parse(util.DataSource(filepath), do_complete=True)
if self.nickname is None:
parsed_name = parser.get_name()
......@@ -128,7 +128,7 @@ class OPAnalysis(Analysis):
class Parser(object, metaclass=ABCMeta):
def parse(self, source, do_complete=True):
def parse(self, source):
def get_data(self):
......@@ -404,7 +404,7 @@ class TorCtlParser(Parser):
return True
def parse(self, source, do_complete=True):
def parse(self, source):'\r\n')
for line in source:
# ignore line parsing errors
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment