Completed
Push — master ( a13486...6469e6 )
by Ryan
01:03
created

traceroutedb.Config   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 19
Duplicated Lines 0 %
Metric Value
dl 0
loc 19
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __init__() 0 2 1
A __setattr__() 0 2 1
A __delattr__() 0 2 1
A __repr__() 0 2 1
A __getattr__() 0 2 1
A __missing__() 0 2 1
1
2
class Config(dict):
3
4
    def __init__(self):
5
        dict.__init__(self)
6
7
    def __getattr__(self, key):
8
        return self[key]
9
10
    def __missing__(self, key):
11
        return False
12
13
    def __setattr__(self, key, value):
14
        self[key] = value
15
16
    def __delattr__(self, key):
17
        del self[key]
18
19
    def __repr__(self):
20
        return '<Config ' + dict.__repr__(self) + '>'
21