def __trim_extensions_dot(exts):
if exts is None:<EOL><INDENT>return None<EOL><DEDENT>res = []<EOL>for i in range(<NUM_LIT:0>, len(exts)):<EOL><INDENT>if exts[i] == "<STR_LIT>":<EOL><INDENT>continue<EOL><DEDENT>res.append(__trim_extension_dot(exts[i]))<EOL><DEDENT>return res<EOL>
trim leading dots from extensions and drop any empty strings.