diff options
| author | Raymond Hettinger <python@rcn.com> | 2003-02-27 00:05:31 +0000 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2003-02-27 00:05:31 +0000 |
| commit | 05595e9d73b2c05fcd9492cf8f5d126282b82053 (patch) | |
| tree | 89d4fc53593a8579415721fa50b06ddc910450a3 /Lib/robotparser.py | |
| parent | b2e0b92ef16b0a4752fa32822af986486439b80f (diff) | |
| download | cpython-git-05595e9d73b2c05fcd9492cf8f5d126282b82053.tar.gz | |
Module review:
* Changed variable name from 'list' to 'flist'.
* Replaced "while 1" with "while True".
* Replaced if/elif/elif/elif structure with a shorter and
faster dispatch dictionary that maps attrs to methods.
* Simplified and sped comparison logic by using
ifilter, ifilterfalse, and dict.fromkeys.
* Used True and False rather than 1 and 0.
Diffstat (limited to 'Lib/robotparser.py')
0 files changed, 0 insertions, 0 deletions
