DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
authorLaurent Peuch <cortex@worlddomination.be>
Fri, 12 Apr 2019 11:56:13 +0200
changeset 12575 30d0e27a1d52
parent 12574 6ccf8fda063f
child 12576 3aa0c203747c
DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
cubicweb/schema.py
--- a/cubicweb/schema.py	Fri Apr 12 13:52:17 2019 +0200
+++ b/cubicweb/schema.py	Fri Apr 12 11:56:13 2019 +0200
@@ -224,8 +224,8 @@
             raise RQLSyntaxError(expression)
         for mainvar in mainvars:
             if len(self.snippet_rqlst.defined_vars[mainvar].references()) < 2:
-                _LOGGER.warn('You did not use the %s variable in your RQL '
-                             'expression %s', mainvar, self)
+                _LOGGER.warning('You did not use the %s variable in your RQL '
+                                'expression %s', mainvar, self)
         # graph of links between variables, used by rql rewriter
         self.vargraph = vargraph(self.snippet_rqlst)
         # useful for some instrumentation, e.g. localperms permcheck command