diff options
| author | Raymond Hettinger <python@rcn.com> | 2002-06-01 14:18:47 +0000 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2002-06-01 14:18:47 +0000 |
| commit | 73a2a7244e024f1876ae5ba69109b82fa30b2d22 (patch) | |
| tree | 9433e3e2c56fa3f4c3cb24caa2dd8563345d3c52 /Lib/difflib.py | |
| parent | 57f39f3bd34a7547ed8305cfb6cd1941b7530d7f (diff) | |
| download | cpython-73a2a7244e024f1876ae5ba69109b82fa30b2d22.tar.gz | |
SF 563203. Replaced 'has_key()' with 'in'.
Diffstat (limited to 'Lib/difflib.py')
| -rw-r--r-- | Lib/difflib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/difflib.py b/Lib/difflib.py index 8fd256133c..0637cffb32 100644 --- a/Lib/difflib.py +++ b/Lib/difflib.py @@ -321,7 +321,7 @@ class SequenceMatcher: junkdict[elt] = 1 del d[elt] - # Now for x in b, isjunk(x) == junkdict.has_key(x), but the + # Now for x in b, isjunk(x) == x in junkdict, but the # latter is much faster. Note too that while there may be a # lot of junk in the sequence, the number of *unique* junk # elements is probably small. So the memory burden of keeping |
