A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-July/016100.html below:

[Python-Dev] webbrowser.py broken on Windows; also in 2.1.1

[Python-Dev] webbrowser.py broken on Windows; also in 2.1.1 [Python-Dev] webbrowser.py broken on Windows; also in 2.1.1Skip Montanaro skip@pobox.com (Skip Montanaro)
Wed, 18 Jul 2001 22:57:22 -0500
    Tim> A very recent patch to webbrowser.py broke this module on Windows;
    Tim> the patch also appears in the 2.1.1 maintenance branch.

Ah shit.

This whole branching thing has me very confused, so I don't dare check
anything in.  To get things to work, I think all you need to do at the end
of webbrowser.py is replace the for loop with

    try:
        _iscommand
        for cmd in _tryorder:
            if not _browsers.has_key(cmd.lower()):
                if _iscommand(cmd.lower()):
                    register(cmd.lower(), None, GenericBrowser("%s %%s" % cmd.lower()))
    except NameError:
        pass

My version suddenly looks a hell of a lot different than what I checked in
earlier today.  I suspect someone may have backed stuff out and went too far
back in time.

Skip



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4