Skip to content

Commit 5377e40

Browse files
committed
replace log.warn with log.warning
1 parent ae320db commit 5377e40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

easybuild/tools/filetools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2240,7 +2240,7 @@ def det_size(path):
22402240
if os.path.exists(fullpath):
22412241
installsize += os.path.getsize(fullpath)
22422242
except OSError as err:
2243-
_log.warn("Could not determine install size: %s" % err)
2243+
_log.warning("Could not determine install size: %s" % err)
22442244

22452245
return installsize
22462246

test/framework/build_log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def test_log_levels(self):
208208
log.error('kaput')
209209
log.deprecated('almost kaput', '10000000000000')
210210
log.raiseError = True
211-
log.warn('this is a warning')
211+
log.warning('this is a warning')
212212
log.info('fyi')
213213
log.debug('gdb')
214214
log.devel('tmi')

0 commit comments

Comments
 (0)