MCPcopy
hub / github.com/fail2ban/fail2ban / close

Method close

fail2ban/server/filter.py:802–810  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

800 return line
801
802 def close(self):
803 if not self.__handler is None:
804 # Saves the last position.
805 self.__pos = self.__handler.tell()
806 # Closes the file.
807 self.__handler.close()
808 self.__handler = None
809 ## print "D: Closed %s with pos %d" % (handler, self.__pos)
810 ## sys.stdout.flush()
811
812
813##

Callers 15

sendMethod · 0.80
testUpdateLogMethod · 0.80
setUpMethod · 0.80
testDatabaseMethod · 0.80
testLogTargetMethod · 0.80
testFlushLogsMethod · 0.80
setUpMethod · 0.80
testSocketForceMethod · 0.80
_killfileFunction · 0.80
_copy_lines_to_journalFunction · 0.80

Calls

no outgoing calls

Tested by 15

testUpdateLogMethod · 0.64
setUpMethod · 0.64
testDatabaseMethod · 0.64
testLogTargetMethod · 0.64
testFlushLogsMethod · 0.64
setUpMethod · 0.64
testSocketForceMethod · 0.64
_killfileFunction · 0.64
_copy_lines_to_journalFunction · 0.64