[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svnperms.py Config.get method broken

From: Fitzpatrick, Ben <ben.fitzpatrick_at_metoffice.gov.uk>
Date: Wed, 8 Oct 2014 09:51:45 +0000

Hi everyone,

svnperms.py currently has a bug in the 'get' method of the Config class, on
line 114 in
https://svn.apache.org/viewvc/subversion/trunk/tools/hook-scripts/svnperms.py?revision=1295006&view=markup:

    def get(self, section, option, default=None):
        return self._sections_dict.get(option, default)

As you can tell by the naming, 'option' is not meant to be used as a key in
'self._sections_dict' ('section' is), and it's then missing a step to actually
extract the option value information.

Cheers,

Ben Fitzpatrick
Received on 2014-10-08 13:51:07 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.