mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-25 10:54:52 +01:00
python: remove the deprecated function Filenames.as_generator
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>
This commit is contained in:
parent
904a807088
commit
e74b1f807b
1 changed files with 0 additions and 12 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue