| Conditions | 3 |
| Total Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | DEFAULT_BAUDRATE = 38400 |
||
| 41 | def _invoke_mapping(self, method, *args, **kwargs): |
||
| 42 | try: |
||
| 43 | item = self.map[self.bus_name][method] |
||
| 44 | return getattr(self.bus, item)(*args, **kwargs) if item else None |
||
| 45 | except KeyError: |
||
| 46 | raise Exception( |
||
| 47 | "Unregistered method or attribute {}".format(method)) |
||
| 48 | |||
| 57 |