config root man

Current Path : /usr/share/fail2ban/client/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/share/fail2ban/client/configparserinc.pyc

łň
E˛óSc@scdZdZdZddkZddkZddklZeidƒZdefd„ƒYZ	dS(	sYaroslav Halhenkos%Copyright (c) 2007 Yaroslav HalchenkotGPLi˙˙˙˙N(tSafeConfigParsersfail2ban.client.configtSafeConfigParserWithIncludescBs5eZdZdZgd„ZeeƒZd„ZRS(s
	Class adds functionality to SafeConfigParser to handle included
	other configuration files (or may be urls, whatever in the future)

	File should have section [includes] and only 2 options implemented
	are 'files_before' and 'files_after' where files are listed 1 per
	line.

	Example:

[INCLUDES]
before = 1.conf
         3.conf

after = 1.conf

	It is a simple implementation, so just basic care is taken about
	recursion. Includes preserve right order, ie new files are
	inserted to the list of read configs before original, and their
	includes correspondingly so the list should follow the leaves of
	the tree.

	I wasn't sure what would be the right way to implement generic (aka c++
	template) so we could base at any *configparser class... so I will
	leave it for the future

	tINCLUDEScCsKt}tƒ}|i|ƒtii|ƒ}dgfdgfg}|i|iƒjoĐxÍ|D]Á\}}||i|iƒjoœ|i	|i|ƒ}x„|i
dƒD]o}	tii|	ƒo
|	}
ntii||	ƒ}
|
|joq­n||g}||i
|
|ƒ7}q­WqcqcWn|dd|g|ddS(sŽ
		Given 1 config resource returns list of included files
		(recursively) with the original one as well
		Simple loops are taken care about
		tbeforetafters
ii(RRtreadtostpathtdirnametSECTION_NAMEtsectionstoptionstgettsplittisabstjointgetIncludes(tresourcetseentSCPWItparsertresourceDirtnewFilestoption_nametoption_listtnewResourcestnewResourcetrts((s-/usr/share/fail2ban/client/configparserinc.pyRAs(	



&cCshg}t|tƒp
|g}nx!|D]}|ti|ƒ7}q*Wtid|ƒti||ƒS(NsReading files: %s(t
isinstancetlistRRtlogSystdebugRR(tselft	filenamest
fileNamesFulltfilename((s-/usr/share/fail2ban/client/configparserinc.pyRds
(t__name__t
__module__t__doc__R
RtstaticmethodR(((s-/usr/share/fail2ban/client/configparserinc.pyR!s
 (
t
__author__t
__copyright__t__license__tloggingRtConfigParserRt	getLoggerR R(((s-/usr/share/fail2ban/client/configparserinc.pys<module>s

Man Man