cubicweb/dataimport/pgstore.py
changeset 11313 682b15eb2dd2
parent 11307 74f5814ecdf0
child 11346 69c17d011f74
--- a/cubicweb/dataimport/pgstore.py	Thu Jan 28 14:02:31 2016 +0100
+++ b/cubicweb/dataimport/pgstore.py	Thu Jan 28 18:18:44 2016 +0100
@@ -225,7 +225,7 @@
         self._add_relation = self._system_source.add_relation
         self.indexes_etypes = {}
         if nb_threads_statement != 1:
-            warn('[3.21] SQLGenObjectStore is no longer threaded', DeprecationWarning)
+            warnings.warn('[3.21] SQLGenObjectStore is no longer threaded', DeprecationWarning)
 
     def flush(self):
         """Flush data to the database"""