summaryrefslogtreecommitdiff
path: root/Tools/faqwiz/faqwiz.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>1998-09-02 21:53:16 +0000
committerJeremy Hylton <jeremy@alum.mit.edu>1998-09-02 21:53:16 +0000
commitb85c8479eb0dd25968eceabf599c0c4616a3c59a (patch)
treeb3786c069d4c17a82728ae034d7bea07caa17393 /Tools/faqwiz/faqwiz.py
parentf6ae743cb53a2953c7fb063963ec48029206c8b0 (diff)
downloadcpython-git-b85c8479eb0dd25968eceabf599c0c4616a3c59a.tar.gz
Easy optimizations of urlparse for the common case of parsing an http URL.
1. use dict.get instead of try/except KeyError 2. if the url scheme is 'http' then avoid the series of 'if var in [someseq]:'. instead, inline all of the code. 3. find = string.find
Diffstat (limited to 'Tools/faqwiz/faqwiz.py')
0 files changed, 0 insertions, 0 deletions