clean: remove unused lock

This commit is contained in:
Swann 2020-10-22 17:37:53 +02:00
parent ee93a5b209
commit 45437660ba
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB
2 changed files with 1 additions and 3 deletions

View File

@ -44,7 +44,7 @@ from . import environment
DEPENDENCIES = { DEPENDENCIES = {
("replication", '0.1.6'), ("replication", '0.2.0'),
} }

View File

@ -699,12 +699,10 @@ def sanitize_deps_graph(dummy):
""" """
if session and session.state['STATE'] == STATE_ACTIVE: if session and session.state['STATE'] == STATE_ACTIVE:
session.lock()
for node_key in session.list(): for node_key in session.list():
node = session.get(node_key) node = session.get(node_key)
if node and not node.resolve(construct=False): if node and not node.resolve(construct=False):
session.remove(node_key) session.remove(node_key)
session.unlock()
@persistent @persistent
def load_pre_handler(dummy): def load_pre_handler(dummy):