Index: Lib/webbrowser.py =================================================================== --- Lib/webbrowser.py (revision 81278) +++ Lib/webbrowser.py (working copy) @@ -540,7 +540,12 @@ # try: - import ic + from warnings import catch_warnings, filterwarnings + with catch_warnings(): + if sys.py3kwarning: + filterwarnings("ignore", ".*the icglue module is removed", + DeprecationWarning) + import ic except ImportError: pass else: