Author: cito
Date: Sat Nov 21 23:46:46 2015
New Revision: 589
Log:
The file type is gone in Python 3
Modified:
trunk/module/pg.py
Modified: trunk/module/pg.py
==============================================================================
--- trunk/module/pg.py Sat Nov 21 23:42:57 2015 (r588)
+++ trunk/module/pg.py Sat Nov 21 23:46:46 2015 (r589)
@@ -332,8 +332,8 @@
if self.debug:
if isinstance(self.debug, basestring):
print(self.debug % s)
- elif isinstance(self.debug, file):
- file.write(s + '\n')
+ elif hasattr(self.debug, 'write'):
+ debug.write(s + '\n')
elif callable(self.debug):
self.debug(s)
else:
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql