File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -91,8 +91,8 @@ def unlink_file(path):
91
91
try :
92
92
path .unlink ()
93
93
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 )
96
96
97
97
98
98
def main (args ):
@@ -108,7 +108,7 @@ def main(args):
108
108
graph , subgraphs = generate_subgraphs (nodes )
109
109
assert len (graph .nodes ()) == sum (len (sg .nodes ()) for sg in subgraphs )
110
110
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!" )
112
112
return
113
113
logger .info ("Found %d discrete region sections" , len (subgraphs ))
114
114
subgraphs = sorted (subgraphs , key = lambda sg : len (sg ), reverse = True )
You can’t perform that action at this time.
0 commit comments