def setSyntax(self, syntax):
        """Choose smart indentation algorithm according to syntax"""
        self._smartIndenter = self._chooseSmartIndenter(syntax)
def getLenp2(self):
        p1 = self.p1
        ret = p1.distance(self.p3)
        return ret