Conditions | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | """ |
||
34 | @staticmethod |
||
35 | def unescape(text): |
||
36 | """ |
||
37 | Returns an unescaped SDoc escaped string. I.e. removes back slashes. |
||
38 | |||
39 | :param text: The SDoc escaped string. |
||
40 | |||
41 | :rtype: str |
||
42 | """ |
||
43 | |||
44 | def replace(matchobj): |
||
45 | return matchobj.group(0)[1:] |
||
46 | |||
47 | return re.sub(r'\\.', replace, text) |
||
48 | |||
51 |
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.