@@ -411,7 +411,7 @@ def get_local_directory_dist(self):
411
411
dist = self ._directory_import ()
412
412
413
413
if dist is None :
414
- log .warn (
414
+ log .warning (
415
415
'The requested path {0!r} for importing {1} does not '
416
416
'exist, or does not contain a copy of the {1} '
417
417
'package.' .format (self .path , PACKAGE_NAME ))
@@ -436,7 +436,7 @@ def get_local_file_dist(self):
436
436
if DEBUG :
437
437
raise
438
438
439
- log .warn (
439
+ log .warning (
440
440
'Failed to import {0} from the specified archive {1!r}: '
441
441
'{2}' .format (PACKAGE_NAME , self .path , str (e )))
442
442
dist = None
@@ -445,10 +445,10 @@ def get_local_file_dist(self):
445
445
446
446
def get_index_dist (self ):
447
447
if not self .download :
448
- log .warn ('Downloading {0!r} disabled.' .format (DIST_NAME ))
448
+ log .warning ('Downloading {0!r} disabled.' .format (DIST_NAME ))
449
449
return None
450
450
451
- log .warn (
451
+ log .warning (
452
452
"Downloading {0!r}; run setup.py with the --offline option to "
453
453
"force offline installation." .format (DIST_NAME ))
454
454
@@ -457,7 +457,7 @@ def get_index_dist(self):
457
457
except Exception as e :
458
458
if DEBUG :
459
459
raise
460
- log .warn (
460
+ log .warning (
461
461
'Failed to download and/or install {0!r} from {1!r}:\n '
462
462
'{2}' .format (DIST_NAME , self .index_url , str (e )))
463
463
dist = None
@@ -630,7 +630,7 @@ def _check_submodule_using_git(self):
630
630
'("C").' )
631
631
if not stderr .strip ().endswith (perl_warning ):
632
632
# Some other unknown error condition occurred
633
- log .warn ('git submodule command failed '
633
+ log .warning ('git submodule command failed '
634
634
'unexpectedly:\n {0}' .format (stderr ))
635
635
return False
636
636
@@ -661,7 +661,7 @@ def _check_submodule_using_git(self):
661
661
self ._update_submodule (m .group ('submodule' ), m .group ('status' ))
662
662
return True
663
663
else :
664
- log .warn (
664
+ log .warning (
665
665
'Unexpected output from `git submodule status`:\n {0}\n '
666
666
'Will attempt import from {1!r} regardless.' .format (
667
667
stdout , self .path ))
@@ -709,7 +709,7 @@ def _check_submodule_no_git(self):
709
709
try :
710
710
cfg .readfp (gitmodules_fileobj )
711
711
except Exception as exc :
712
- log .warn ('Malformatted .gitmodules file: {0}\n '
712
+ log .warning ('Malformatted .gitmodules file: {0}\n '
713
713
'{1} cannot be assumed to be a git submodule.' .format (
714
714
exc , self .path ))
715
715
return False
@@ -748,7 +748,7 @@ def _update_submodule(self, submodule, status):
748
748
'Please complete or abandon any changes in the submodule so that '
749
749
'it is in a usable state, then try again.' .format (submodule ))
750
750
else :
751
- log .warn ('Unknown status {0!r} for git submodule {1!r}. Will '
751
+ log .warning ('Unknown status {0!r} for git submodule {1!r}. Will '
752
752
'attempt to use the submodule as-is, but try to ensure '
753
753
'that the submodule is in a clean state and contains no '
754
754
'conflicts or errors.\n {2}' .format (status , submodule ,
@@ -757,7 +757,7 @@ def _update_submodule(self, submodule, status):
757
757
758
758
err_msg = None
759
759
cmd = ['git' , 'submodule' ] + cmd + ['--' , submodule ]
760
- log .warn ('{0} {1} submodule with: `{2}`' .format (
760
+ log .warning ('{0} {1} submodule with: `{2}`' .format (
761
761
action , submodule , ' ' .join (cmd )))
762
762
763
763
try :
@@ -771,7 +771,7 @@ def _update_submodule(self, submodule, status):
771
771
err_msg = stderr
772
772
773
773
if err_msg is not None :
774
- log .warn ('An unexpected error occurred updating the git submodule '
774
+ log .warning ('An unexpected error occurred updating the git submodule '
775
775
'{0!r}:\n {1}\n {2}' .format (submodule , err_msg ,
776
776
_err_help_msg ))
777
777
0 commit comments