Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f027a20

Browse files
committed
Issue #13248: removed deprecated and undocumented difflib.isbjunk, isbpopular.
1 parent ca03856 commit f027a20

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

Lib/difflib.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -336,20 +336,6 @@ def __chain_b(self):
336336
for elt in popular: # ditto; as fast for 1% deletion
337337
del b2j[elt]
338338

339-
def isbjunk(self, item):
340-
"Deprecated; use 'item in SequenceMatcher().bjunk'."
341-
warnings.warn("'SequenceMatcher().isbjunk(item)' is deprecated;\n"
342-
"use 'item in SMinstance.bjunk' instead.",
343-
DeprecationWarning, 2)
344-
return item in self.bjunk
345-
346-
def isbpopular(self, item):
347-
"Deprecated; use 'item in SequenceMatcher().bpopular'."
348-
warnings.warn("'SequenceMatcher().isbpopular(item)' is deprecated;\n"
349-
"use 'item in SMinstance.bpopular' instead.",
350-
DeprecationWarning, 2)
351-
return item in self.bpopular
352-
353339
def find_longest_match(self, alo, ahi, blo, bhi):
354340
"""Find longest matching block in a[alo:ahi] and b[blo:bhi].
355341

0 commit comments

Comments
 (0)