Here's the code I have now:
lang = window.get_active_document().get_language()
if lang != None:
lang = lang.get_name()
Is there a better way to do that? I'm new to Pythonic and was wondering if there's a more Python way to say "something equals this if x is true, else it equals that."
Thanks.