Raymond Hettinger <[EMAIL PROTECTED]> added the comment:
Applying a minimal version of this patch -- changing has_key() to
__contains__(). See r64511.
--
nosy: +rhettinger
resolution: -> accepted
status: open -> closed
___
Python tracker <[EMAIL PR
Virgil Dupras <[EMAIL PROTECTED]> added the comment:
It slipped out of my mind that performance was probably important for this
module, so I ditched that nested get call and went if an if..else.
Added file: http://bugs.python.org/file10718/difflib_py3k_deprecation2.diff
___
New submission from Virgil Dupras <[EMAIL PROTECTED]>:
When running with the -3 flag, difflib creates DeprecationWarnings. I
attach a patch fixing them.
There was a note in the code saying "DOES NOT WORK for x in a". However,
after my changes, tests still pass, so I removed these notices. If s