def setSyntax(self, syntax):
        """Choose smart indentation algorithm according to syntax"""
        self._smartIndenter = self._chooseSmartIndenter(syntax)
def looks_like_hash(sha):
    return bool(HASH_REGEX.match(sha))