# HG changeset patch # User Laurent Peuch # Date 1555062973 -7200 # Node ID 30d0e27a1d5202bb1a0b68c1d191105db075ed9e # Parent 6ccf8fda063f74e8f0949f398665b2dad2bf2ceb DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead diff -r 6ccf8fda063f -r 30d0e27a1d52 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