diff Lib/difflib.py @ 23620:a1de0bab5475 legacy-trunk

SF 563203. Replaced 'has_key()' with 'in'.
author Raymond Hettinger <python@rcn.com>
date Sat, 01 Jun 2002 14:18:47 +0000
parents b5f6e9f6e7f4
children 18edf23bf499
line wrap: on
line diff
--- a/Lib/difflib.py	Sat Jun 01 06:03:09 2002 +0000
+++ b/Lib/difflib.py	Sat Jun 01 14:18:47 2002 +0000
@@ -321,7 +321,7 @@
                         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