def setSyntax(self, syntax):
        """Choose smart indentation algorithm according to syntax"""
        self._smartIndenter = self._chooseSmartIndenter(syntax)
def items(self):
        for key, value in self._collection.items():
            yield key, self._to_python(value)