From: "W. Trevor King" <wking@tremily.us>
To: gentoo-catalyst@lists.gentoo.org
Subject: Re: [gentoo-catalyst] [PATCH] The string module is deprecated, stop using it.
Date: Wed, 18 Dec 2013 22:39:24 -0800 [thread overview]
Message-ID: <20131219063924.GR25409@odin.tremily.us> (raw)
In-Reply-To: <1387430286-30467-1-git-send-email-antarus@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 1206 bytes --]
On Wed, Dec 18, 2013 at 09:18:06PM -0800, antarus@gentoo.org wrote:
> @@ -116,12 +115,13 @@ def parse_config(myconfig):
> print "Setting",x,"to default value \""+confdefaults[x]+"\""
> conf_values[x]=confdefaults[x]
>
> + options = conf_values["options"].split()
> # parse out the rest of the options from the config file
> - if "autoresume" in string.split(conf_values["options"]):
> + if "autoresume" in options:
> print "Autoresuming support enabled."
> conf_values["AUTORESUME"]="1"
>
> - if "bindist" in string.split(conf_values["options"]):
> + if "bindist" in options:
> print "Binary redistribution enabled"
> conf_values["BINDIST"]="1"
> else:
These changes look fine to me, but I'd rather just convert to the
stdlib's ConfigParser. That's going to blow away this whole function,
so I don't see the point in fixing it up now. Of course, if the
powers that be think a ConfigParser conversion is in the far-distant
future, then I'm ok with this as a temporary cleanup.
Cheers,
Trevor
--
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2013-12-19 6:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-19 5:18 [gentoo-catalyst] [PATCH] The string module is deprecated, stop using it antarus
2013-12-19 6:39 ` W. Trevor King [this message]
2013-12-19 7:05 ` Brian Dolbec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131219063924.GR25409@odin.tremily.us \
--to=wking@tremily.us \
--cc=gentoo-catalyst@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox