diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2012-04-30 18:13:31 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2012-04-30 18:13:31 +0200 |
commit | e74b1f807bea9b8572a71757da9a3003e24a02b8 (patch) | |
tree | 2d04e57202b31684a347b7971ad0668e60860dca /bindings/python | |
parent | 904a8070889c36b5dc7169a82f20cc354cc0f867 (diff) |
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>
Diffstat (limited to 'bindings/python')
-rw-r--r-- | bindings/python/notmuch/filenames.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/bindings/python/notmuch/filenames.py b/bindings/python/notmuch/filenames.py index f3d761d..2079530 100644 --- a/bindings/python/notmuch/filenames.py +++ b/bindings/python/notmuch/filenames.py @@ -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 |