summaryrefslogtreecommitdiff
path: root/keystoneclient/utils.py
diff options
context:
space:
mode:
authorBrant Knudson <bknudson@us.ibm.com>2015-06-07 11:39:15 -0500
committerBrant Knudson <bknudson@us.ibm.com>2015-06-08 20:29:07 -0500
commitc0046d7d0120ee18aab2f32ac6bdfca724d972ce (patch)
tree2bc1496b5c5f533aef9d39797e1f9cc0e43f473c /keystoneclient/utils.py
parent7f407488cefd9668b31df6b4050209438675a95f (diff)
downloadpython-keystoneclient-c0046d7d0120ee18aab2f32ac6bdfca724d972ce.tar.gz
Stop using function deprecated in Python 3
Python 3 deprecated the logger.warn method in favor of warning. DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead Change-Id: Idbd4de3c7c631fb2c235701c9b300c37a90d9538
Diffstat (limited to 'keystoneclient/utils.py')
-rw-r--r--keystoneclient/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/keystoneclient/utils.py b/keystoneclient/utils.py
index ea921af..300ca54 100644
--- a/keystoneclient/utils.py
+++ b/keystoneclient/utils.py
@@ -331,7 +331,7 @@ class positional(object):
if self._enforcement == self.EXCEPT:
raise TypeError(message)
elif self._enforcement == self.WARN:
- logger.warn(message)
+ logger.warning(message)
return func(*args, **kwargs)