'Return an appropriate LangInfo for the given filename extension,
or None.'

def langinfo_from_ext(self, ext):

    if (self._langinfo_from_ext is None):
        self._build_tables()
    if (sys.platform in ('win32', 'darwin')):
        ext = ext.lower()
    return self._langinfo_from_ext.get(ext)
