| Conditions | 1 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | 1 | from __future__ import absolute_import |
|
| 28 | 1 | def merge_dicts(left, right): |
|
| 29 | """ |
||
| 30 | Merges two dictionaries, keeing left and right as passed. If there are any |
||
| 31 | common keys between left and right, the value from right is use. |
||
| 32 | |||
| 33 | Returns the merger of the left and right dictionaries |
||
| 34 | """ |
||
| 35 | 1 | result = left.copy() |
|
| 36 | 1 | result.update(right) |
|
| 37 | return result |
||
| 38 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.