Skip to content

Commit d2889f7

Browse files
befelemelavagetto
authored andcommitted
Support Python 3.13
What's new in Python 3.13 states: "logging: Remove undocumented and untested Logger.warn() and LoggerAdapter.warn() methods and logging.warn() function. Deprecated since Python 3.3, they were aliases to the logging.Logger.warning() method, logging.LoggerAdapter.warning() method and logging.warning() function. (Contributed by Victor Stinner in gh-105376.)"
1 parent 5aea0fd commit d2889f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/etcd/lock.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def uuid(self, value):
3535
old_uuid = self._uuid
3636
self._uuid = value
3737
if not self._find_lock():
38-
_log.warn("The hand-set uuid was not found, refusing")
38+
_log.warning("The hand-set uuid was not found, refusing")
3939
self._uuid = old_uuid
4040
raise ValueError("Inexistent UUID")
4141

@@ -51,7 +51,7 @@ def is_acquired(self):
5151
self.client.read(self.lock_key)
5252
return True
5353
except etcd.EtcdKeyNotFound:
54-
_log.warn("Lock was supposedly taken, but we cannot find it")
54+
_log.warning("Lock was supposedly taken, but we cannot find it")
5555
self.is_taken = False
5656
return False
5757

0 commit comments

Comments
 (0)