Skip to content

Commit efad324

Browse files
committed
Drop the unused rv = None initialization
Both branches inside the lock assign rv before it is read, so the reset is dead code.
1 parent 9c0df96 commit efad324

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

Lib/logging/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,6 @@ def getLogger(self, name):
13831383
rv = self.loggerDict.get(name)
13841384
if rv is not None and not isinstance(rv, PlaceHolder):
13851385
return rv
1386-
rv = None
13871386
with _lock:
13881387
if name in self.loggerDict:
13891388
rv = self.loggerDict[name]

0 commit comments

Comments
 (0)