-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crudini omits keys/params #39
Comments
Whoa that's a crazy bug. import iniparse
from cStringIO import StringIO
p=iniparse.ConfigParser()
p.readfp(StringIO("[1]\nremote=1\nemote=2"))
print p.items(p.sections()[0]) I don't see "remote" mentioned in the iniparse source, |
Whoa, any line that starts with "rem" is treated as a comment. Ouch. |
pixelb
added a commit
that referenced
this issue
Nov 23, 2016
iniparse defaults to treating lines starting with "rem" as comments. Therefore change the default comment matching scheme to allow parameters like "remote = 1" for example. Also allow '%' as a comment character which will then allow processing of mercurial config files which can use "%include" and "%unset" directives. Fixes issue #39
Thanks for the quick fix. Appreciated! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Crudini omits certain keys in sections like
remote
(see below); tested on Linux and Cygwin. It looks like the underlyinginiparse
library is the culprit.Can you confirm the issue and tell which kind of keys are dropped? If this is potentially occuring with a multitude of key names I would have to drop Crudini for my current project.
The text was updated successfully, but these errors were encountered: