]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #13248: removed deprecated and undocumented difflib.isbjunk, isbpopular.
authorTerry Jan Reedy <tjreedy@udel.edu>
Tue, 19 Mar 2013 23:44:04 +0000 (19:44 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Tue, 19 Mar 2013 23:44:04 +0000 (19:44 -0400)
Lib/difflib.py

index db5f82ec035055616bc6a6d0aadebd38b393d977..809774489fb44c7eedc1b37b8d56bae396490d59 100644 (file)
@@ -336,20 +336,6 @@ class SequenceMatcher:
             for elt in popular: # ditto; as fast for 1% deletion
                 del b2j[elt]
 
-    def isbjunk(self, item):
-        "Deprecated; use 'item in SequenceMatcher().bjunk'."
-        warnings.warn("'SequenceMatcher().isbjunk(item)' is deprecated;\n"
-                      "use 'item in SMinstance.bjunk' instead.",
-                      DeprecationWarning, 2)
-        return item in self.bjunk
-
-    def isbpopular(self, item):
-        "Deprecated; use 'item in SequenceMatcher().bpopular'."
-        warnings.warn("'SequenceMatcher().isbpopular(item)' is deprecated;\n"
-                      "use 'item in SMinstance.bpopular' instead.",
-                      DeprecationWarning, 2)
-        return item in self.bpopular
-
     def find_longest_match(self, alo, ahi, blo, bhi):
         """Find longest matching block in a[alo:ahi] and b[blo:bhi].