On Fri, Jan 25, 2019 at 6:37 PM RjOllos <[email protected]> wrote: > > > On Friday, January 25, 2019 at 1:12:26 PM UTC-8, fernan wrote: >> >> My apologies for the noise. >> >> It seems like I had two '[inherit]' blocks in both my projects trac.ini >> files (one of them pointing to empty locations and overriding the first >> (correct) one). >> >> Ashamed to took so long to discover. >> >> -- >> fernan >> > > I've encountered the same problem: > https://trac.edgewall.org/ticket/11538 > > After Trac switches to Python 3 we can use the "strict" option of > ConfigParser to raise an error for the case of duplicate sections or > options. > https://docs.python.org/3/library/configparser.html#configparser-objects > > When strict is True (the default), the parser won’t allow for any section >> or option duplicates while reading from a single source (file, string or >> dictionary), raising DuplicateSectionError or DuplicateOptionError. > > > - Ryan >
Indeed. That would've nice. Meanwhile, it may be possible to run trac.ini through an external python3 configparser script in strict mode? Have anyone done this already? -- fernan -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
