]> git.cworth.org Git - obsolete/notmuch-old/commitdiff
python: remove the deprecated function Filenames.as_generator
authorJustus Winter <4winter@informatik.uni-hamburg.de>
Mon, 30 Apr 2012 16:13:31 +0000 (18:13 +0200)
committerJustus Winter <4winter@informatik.uni-hamburg.de>
Mon, 30 Apr 2012 16:13:31 +0000 (18:13 +0200)
Remove the function Filenames.as_generator that has been marked as
deprecated in 0.12.

The class Filenames implements the iterator protocol so you can
directly iterate over such objects instead.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
bindings/python/notmuch/filenames.py

index f3d761d2cab7ba432da257b62248fdc76e21ccb9..2079530f656ff3cd78c50a67e7d94e3d2b46843d 100644 (file)
@@ -109,18 +109,6 @@ class Filenames(Python3StringMixIn):
         return file_.decode('utf-8', 'ignore')
     next = __next__ # python2.x iterator protocol compatibility
 
-    def as_generator(self):
-        """Return generator of Filenames
-
-        This is the main function that will usually be used by the
-        user.
-
-        .. deprecated:: 0.12
-                        :class:`Filenames` objects implement the
-                        iterator protocol.
-        """
-        return self
-
     def __unicode__(self):
         """Represent Filenames() as newline-separated list of full paths