Total Complexity | 4 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | #!/usr/bin/env python |
||
9 | class REPP: |
||
10 | def __init__(self, config): |
||
11 | self.config = config |
||
12 | self.connect() |
||
13 | |||
14 | def connect(self): |
||
15 | self.epp = EPP(self.config) |
||
16 | self.greeting = self.epp.greeting |
||
17 | |||
18 | def command(self, xml): |
||
19 | res = self.epp.command(xml) |
||
20 | if not res: |
||
21 | self.connect() |
||
22 | res = self.epp.command(xml) |
||
23 | return res |
||
24 | |||
48 |