Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug on user arrival.
[doldaconnect.git]
/
lib
/
python
/
dolcon
/
__init__.py
diff --git
a/lib/python/dolcon/__init__.py
b/lib/python/dolcon/__init__.py
index
8675b38
..
0cb26ba
100644
(file)
--- a/
lib/python/dolcon/__init__.py
+++ b/
lib/python/dolcon/__init__.py
@@
-99,3
+99,14
@@
def ecmds(*args):
if resp.getcode() >= 500 and resp.getcode() < 600:
raise ValueError, tuple(resp.extract()[0])
return resp
if resp.getcode() >= 500 and resp.getcode() < 600:
raise ValueError, tuple(resp.extract()[0])
return resp
+
+def getresps():
+ """A generator function which will iterate over all responses from
+ getresp.
+ """
+ while True:
+ resp = getresp()
+ if resp is None:
+ break
+ else:
+ yield resp