Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'skip:[ 20': 0.04; 'output': 0.05; '(especially': 0.07; 'arguments': 0.09; 'facts': 0.09; 'subject:question': 0.10; 'command': 0.22; 'memory': 0.22; '---': 0.24; 'first,': 0.26; 'wondering': 0.29; 'message- id:@mail.gmail.com': 0.30; '"': 0.31; 'received:google.com': 0.35; 'hi,': 0.36; 'example,': 0.37; 'handle': 0.38; 'skip:[ 10': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'skip:n 10': 0.64; 'default': 0.69; '100': 0.79; 'configparser': 0.84; 'relate': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=WQbHR85t2S/YvvBdSwaXMxDF6WejJbuMbzBK5vD0sP8=; b=rseCQdyEET9XAIK7FkZueUghJ7tmru8QYzksmK50Zb+7/9sAlwxvRuWw2yCuoJle8Z q1Y4Q9VC5KdeMQyhOMjzP4fnAyZm5g1WPtnL0/3Ds2DXba6NX2C95Zg5UUk8jp1ZnrMu TGh4ArH46Gf5mjJ9AplRelyUcJ/YhrgqfXr0/Sj2GqmP2trECmUrUq3SIQ2COqLuNIru esXVTV5mfjQl+lNrqRvdp4BRNlZWfEsaABMR5RaWe910G/hw+lTgC+TxoU/Wn+/9+IZ/ 4zrC6yiZHlauwEB0eXevE1umSamwyV6kFF3a6OIXF5LHjM7yL0Ehl9krivDedCF1E2at Ow6Q== MIME-Version: 1.0 X-Received: by 10.68.103.163 with SMTP id fx3mr20685182pbb.59.1385422358481; Mon, 25 Nov 2013 15:32:38 -0800 (PST) Date: Mon, 25 Nov 2013 18:32:38 -0500 Subject: general ConfigParser question From: Rita To: python-list@python.org Content-Type: multipart/alternative; boundary=047d7b67633a8a936f04ec08c73e X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 55 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1385422362 news.xs4all.nl 15868 [2001:888:2000:d::a6]:40332 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:60466 --047d7b67633a8a936f04ec08c73e Content-Type: text/plain; charset=ISO-8859-1 Hi, I was wondering if the default ConfigParser can handle multi line strings (especially in the relate section) For example, if i have system.ini [Global] memory = 1024 [Process A] command = sleep arguments = 100 [Process B] command = nslookup arguments = hostA output = data [Process C] command = checksum arguments = data [Relate] data="parent process A child process B Parent process B child process C " --- Get your facts first, then you can distort them as you please.-- --047d7b67633a8a936f04ec08c73e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

I was wondering if the default Conf= igParser can handle multi line strings (especially in the relate section)

For example, if i have system.ini
[Global]
memory =3D 1024

[Pro= cess A]
command =3D sleep
arguments =3D 100
<= br>
[Process B]
command =3D nslookup
argument= s =3D hostA
output =3D data

[Process C]
command= =3D checksum
arguments =3D data

[Relate= ]
data=3D"parent process A child process B
Parent = process B child process C
"

=A0
--- Get your facts= first, then you can distort them as you please.--
--047d7b67633a8a936f04ec08c73e--