Author: Maciej Fijalkowski <[email protected]>
Branch:
Changeset: r62996:27d82b8799d6
Date: 2013-04-04 07:49 +0200
http://bitbucket.org/pypy/pypy/changeset/27d82b8799d6/
Log: cffi does not return none from externals (but can return NULL), such
things should be tested though!!!
diff --git a/lib_pypy/_sqlite3.py b/lib_pypy/_sqlite3.py
--- a/lib_pypy/_sqlite3.py
+++ b/lib_pypy/_sqlite3.py
@@ -1284,7 +1284,7 @@
desc = []
for i in xrange(_lib.sqlite3_column_count(self._statement)):
name = _lib.sqlite3_column_name(self._statement, i)
- if name is not None:
+ if name:
name = _ffi.string(name).decode('utf-8').split("[")[0].strip()
desc.append((name, None, None, None, None, None, None))
return desc
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit