This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Disabled: | |
| """Class that absorbs all attribute and method calls on it""" | |
| def __init__(self, *args, **kwargs): | |
| pass | |
| def __getattr__(self, item): | |
| return self | |
| def __call__(self, *args, **kwargs): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def remove_umlaut(string): | |
| """ | |
| Removes umlauts from strings and replaces them with the letter+e convention | |
| :param string: string to remove umlauts from | |
| :return: unumlauted string | |
| """ | |
| u = 'ü'.encode() | |
| U = 'Ü'.encode() | |
| a = 'ä'.encode() | |
| A = 'Ä'.encode() |