[Pkg-mpd-commits] [python-mpd] 59/262: mpd.py: remove superfluous StopIteration exceptions
Simon McVittie
smcv at debian.org
Sun May 22 18:16:25 UTC 2016
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch upstream
in repository python-mpd.
commit 03647a81484640a4a6197774408a45973c9dbe39
Author: J. Alexander Treuman <jat at spatialrift.net>
Date: Thu Jul 15 16:48:19 2010 -0400
mpd.py: remove superfluous StopIteration exceptions
---
mpd.py | 5 -----
1 file changed, 5 deletions(-)
diff --git a/mpd.py b/mpd.py
index 315c262..32b51a1 100644
--- a/mpd.py
+++ b/mpd.py
@@ -227,7 +227,6 @@ class MPDClient(object):
while pair:
yield pair
pair = self._read_pair(separator)
- raise StopIteration
def _read_list(self):
seen = None
@@ -238,12 +237,10 @@ class MPDClient(object):
(seen, key))
seen = key
yield value
- raise StopIteration
def _read_playlist(self):
for key, value in self._read_pairs(":"):
yield value
- raise StopIteration
def _read_objects(self, delimiters=[]):
obj = {}
@@ -262,14 +259,12 @@ class MPDClient(object):
obj[key] = value
if obj:
yield obj
- raise StopIteration
def _read_command_list(self):
for retval in self._command_list:
yield retval()
self._command_list = None
self._fetch_nothing()
- raise StopIteration
def _wrap_iterator(self, iterator):
if not self.iterate:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mpd/python-mpd.git
More information about the Pkg-mpd-commits
mailing list