On 5 April 2017 at 02:16, Mads Kiilerich <m...@kiilerich.com> wrote:
> That's a lot of checking before doing. I wonder if it would be cleaner to do
> something like:
>
> _lexer_name = getattr(kallithea.EXTENSIONS, 'EXTRA_LEXERS',
> {}).get(extension)
> if _lexer_name is not None:
>     ...
>
> If you agree, I can tweak it to that.

Indeed, that looks better. Please go ahead :)

-- 
Cheers,
  Andrew
_______________________________________________
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general

Reply via email to