Changeset - fb7f38e22730
[Not reviewed]
default
0 1 0
domruf - 9 years ago 2017-05-10 22:58:06
dominikruf@gmail.com
bin: fix __eq__ of bin/base.py RcConf

__eq__ without parameter makes no sense - found by pylint.

(The method is thus apparently unused and could be removed completely together
with other RcConf code.)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/bin/base.py
Show inline comments
 
@@ -102,26 +102,26 @@ class RcConf(object):
 
            self.make_config(config)
 
        if autoload:
 
            self._conf = self.load_config()
 

	
 
    def __getitem__(self, key):
 
        return self._conf[key]
 

	
 
    def __nonzero__(self):
 
        if self._conf:
 
            return True
 
        return False
 

	
 
    def __eq__(self):
 
        return self._conf.__eq__()
 
    def __eq__(self, other):
 
        return self._conf.__eq__(other)
 

	
 
    def __repr__(self):
 
        return 'RcConf<%s>' % self._conf.__repr__()
 

	
 
    def make_config(self, config):
 
        """
 
        Saves given config as a JSON dump in the _conf_name location
 

	
 
        :param config:
 
        """
 
        update = False
 
        if os.path.exists(self._conf_name):
0 comments (0 inline, 0 general)