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 |
|
39 | 1 | def merge_dicts(left, right): |
|
40 | """ |
||
41 | Merges two dictionaries, keeing left and right as passed. If there are any |
||
42 | common keys between left and right, the value from right is use. |
||
43 | |||
44 | Returns the merger of the left and right dictionaries |
||
45 | """ |
||
46 | 1 | result = left.copy() |
|
47 | 1 | result.update(right) |
|
48 | 1 | return result |
|
49 | |||
63 |
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.