| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
|
|
|||
| 2 | |||
| 3 | import base64 |
||
| 4 | |||
| 5 | class CredentialsMixin: |
||
| 6 | @staticmethod |
||
| 7 | def get_creds(): |
||
| 8 | creds = { |
||
| 9 | b"YWNjb3VudA==": b"emhlbmdodWEuZ2Fv", |
||
| 10 | b"cGFzc3dvcmQ=": b"cWFydUQ0b2s=", |
||
| 11 | } |
||
| 12 | params = {base64.b64decode(key): base64.b64decode(val) for key, val in creds.items()} |
||
|
1 ignored issue
–
show
|
|||
| 13 | return params |
||
| 14 | |||
| 15 | @staticmethod |
||
| 16 | def get_creds2(): |
||
| 17 | creds = { |
||
| 18 | b"YWNjb3VudA==": b"VGVsZUV4dFRlc3Q=", |
||
| 19 | b"cGFzc3dvcmQ=": b"dDA1MjM=", |
||
| 20 | } |
||
| 21 | params = {base64.b64decode(key): base64.b64decode(val) for key, val in creds.items()} |
||
|
1 ignored issue
–
show
|
|||
| 22 | return params |
||
| 23 |
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.