summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Toivonen <heikki@heikkitoivonen.net>2006-06-20 03:22:37 +0000
committerHeikki Toivonen <heikki@heikkitoivonen.net>2006-06-20 03:22:37 +0000
commit98b2421ec5634c387e31bb0f957cc3f6ccc400a8 (patch)
tree6d24242849bf749c7092cf37060514fc888913c3
parent963a3550be51ec6e4f3ea78dfa3a89417f9e31da (diff)
downloadm2crypto-98b2421ec5634c387e31bb0f957cc3f6ccc400a8.tar.gz
Do the iterator in a way that works also in Python 2.3, patch by Thomas D. Uram.
git-svn-id: http://svn.osafoundation.org/m2crypto/branches/0.16@452 2715db39-9adf-0310-9c64-84f055769b4b
-rw-r--r--M2Crypto/SSL/Cipher.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/M2Crypto/SSL/Cipher.py b/M2Crypto/SSL/Cipher.py
index 4c49f17..4957911 100644
--- a/M2Crypto/SSL/Cipher.py
+++ b/M2Crypto/SSL/Cipher.py
@@ -36,5 +36,5 @@ class Cipher_Stack:
return Cipher(v)
def __iter__(self):
- return (self[i] for i in xrange(m2.sk_ssl_cipher_num(self.stack)))
- \ No newline at end of file
+ for i in xrange(m2.sk_ssl_cipher_num(self.stack)):
+ yield self[i]