def browser_open(url):
    if sys.platform == 'darwin':
            os.system(url % 'open %s &')
    else:
        import webbrowser
        if webbrowser._iscommand('firefox') and \
                        preference_manager.root.open_help_in_light_browser:
            # Firefox is installed, let's use it, we know how to make it
            # chromeless.
            firefox = webbrowser.get('firefox')
            firefox._invoke(['-chrome', url], remote=False, autoraise=True)
        else:
            webbrowser.open(url, autoraise=1)
dataset/ETHPy150Open enthought/mayavi/mayavi/action/help.py/browser_open/swapped operands of `%`