Modify ↓
Opened 9 years ago
Last modified 2 years ago
#12792 new defect
Configuration parsing in svn_authz module ignores user "rem" as a comment
| Reported by: | Ryan J Ollos | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | next-stable-1.6.x |
| Component: | general | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Copied from 12649#comment:11:
ConfigParser ignores a line started with rem as a comment. User named rem cannot be used in.
>>> from trac.versioncontrol.svn_authz import parse >>> from trac.util import read_file >>> print(read_file('/tmp/svnauthz.txt')) [/path/to] foo = rw REM = rw Rem = rw rem = rw >>> parse('/tmp/svnauthz.txt', ['']) {'': {u'/path/to': {u'foo': True}}}
Attachments (0)
Change History (3)
comment:1 by , 9 years ago
| Summary: | Simplify configuration parsing in svn_authz module → Configuration parsing in svn_authz module ignores user "rem" as a comment |
|---|---|
| Type: | enhancement → defect |
comment:2 by , 5 years ago
| Milestone: | next-stable-1.2.x → next-stable-1.4.x |
|---|
Note:
See TracTickets
for help on using tickets.



Seems to be intentional in Python 2.7. (But undocumented? Someone on StackOverflow wondered the same.)
Apparently in Python 3.2 this behavior was removed as part of this issue.