Skip to content

Commit ae32f5f

Browse files
committed
logger.warn->logger.warning
1 parent b7e9e86 commit ae32f5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/regionTrimmer.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ def unlink_file(path):
9191
try:
9292
path.unlink()
9393
except OSError as err:
94-
logger.warn("Unable to delete file: %s", path)
95-
logger.warn("Error recieved was: %s", err)
94+
logger.warning("Unable to delete file: %s", path)
95+
logger.warning("Error recieved was: %s", err)
9696

9797

9898
def main(args):
@@ -108,7 +108,7 @@ def main(args):
108108
graph, subgraphs = generate_subgraphs(nodes)
109109
assert len(graph.nodes()) == sum(len(sg.nodes()) for sg in subgraphs)
110110
if len(subgraphs) == 1:
111-
logger.warn("All regions are contiguous, the needful is done!")
111+
logger.warning("All regions are contiguous, the needful is done!")
112112
return
113113
logger.info("Found %d discrete region sections", len(subgraphs))
114114
subgraphs = sorted(subgraphs, key=lambda sg: len(sg), reverse=True)

0 commit comments

Comments
 (0)