You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 someone
knows what this was all about, let me know.
Activity
vdupras commentedon Jun 24, 2008
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 someone
knows what this was all about, let me know.
vdupras commentedon Jun 24, 2008
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.
rhettinger commentedon Jun 24, 2008
Applying a minimal version of this patch -- changing has_key() to
__contains__(). See r64511.