def setSyntax(self, syntax):
        """Choose smart indentation algorithm according to syntax"""
        self._smartIndenter = self._chooseSmartIndenter(syntax)
def __new__(cls, *args, **kwargs):
        raise TypeError("Instances of {} are not allowed to be constructed!".format(cls.__name__))