Issue 28 in iniparse: Options in inifile with name beginning with REM are skipped

2 views
Skip to first unread message

inip...@googlecode.com

unread,
Feb 22, 2012, 9:25:21 AM2/22/12
to iniparse...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 28 by hubert.t...@gmail.com: Options in inifile with name
beginning with REM are skipped
http://code.google.com/p/iniparse/issues/detail?id=28

The RegExp for Class CommentLine should test for a space after REM.
If not, an option like Remote_dir is interpreted as a comment.


regexp like
regex = re.compile(r'^(?P<csep>[;#]|[rR][eE][mM] +)'
r'(?P<comment>.*)$')

(" +'" added)
should work.

inip...@googlecode.com

unread,
Feb 28, 2012, 10:38:49 AM2/28/12
to iniparse...@googlegroups.com
Updates:
Status: Accepted

Comment #1 on issue 28 by psobe...@gmail.com: Options in inifile with name

Yup, you're right. Thanks for the bug report.
I will apply the fix.

Reply all
Reply to author
Forward
0 new messages