[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Make test for file.__iter__ work on pythons without a "...



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria:/tmp/cvs-serv23392/src/minion/lib/mixminion

Modified Files:
	Common.py 
Log Message:
Make test for file.__iter__ work on pythons without a "file" builtin

Index: Common.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/Common.py,v
retrieving revision 1.146
retrieving revision 1.147
diff -u -d -r1.146 -r1.147
--- Common.py	4 Jun 2005 13:52:14 -0000	1.146
+++ Common.py	28 Nov 2005 17:06:18 -0000	1.147
@@ -54,7 +54,7 @@
 try:
     file.__iter__
     xreadlines = None
-except (KeyError, AttributeError), _:
+except (KeyError, AttributeError, NameError), _:
     import xreadlines
 
 from types import StringType