@@ -411,7 +411,7 @@ def get_local_directory_dist(self):
411411 dist = self ._directory_import ()
412412
413413 if dist is None :
414- log .warning (
414+ log .warn (
415415 'The requested path {0!r} for importing {1} does not '
416416 'exist, or does not contain a copy of the {1} '
417417 'package.' .format (self .path , PACKAGE_NAME ))
@@ -436,7 +436,7 @@ def get_local_file_dist(self):
436436 if DEBUG :
437437 raise
438438
439- log .warning (
439+ log .warn (
440440 'Failed to import {0} from the specified archive {1!r}: '
441441 '{2}' .format (PACKAGE_NAME , self .path , str (e )))
442442 dist = None
@@ -445,10 +445,10 @@ def get_local_file_dist(self):
445445
446446 def get_index_dist (self ):
447447 if not self .download :
448- log .warning ('Downloading {0!r} disabled.' .format (DIST_NAME ))
448+ log .warn ('Downloading {0!r} disabled.' .format (DIST_NAME ))
449449 return None
450450
451- log .warning (
451+ log .warn (
452452 "Downloading {0!r}; run setup.py with the --offline option to "
453453 "force offline installation." .format (DIST_NAME ))
454454
@@ -457,7 +457,7 @@ def get_index_dist(self):
457457 except Exception as e :
458458 if DEBUG :
459459 raise
460- log .warning (
460+ log .warn (
461461 'Failed to download and/or install {0!r} from {1!r}:\n '
462462 '{2}' .format (DIST_NAME , self .index_url , str (e )))
463463 dist = None
@@ -630,7 +630,7 @@ def _check_submodule_using_git(self):
630630 '("C").' )
631631 if not stderr .strip ().endswith (perl_warning ):
632632 # Some other unknown error condition occurred
633- log .warning ('git submodule command failed '
633+ log .warn ('git submodule command failed '
634634 'unexpectedly:\n {0}' .format (stderr ))
635635 return False
636636
@@ -661,7 +661,7 @@ def _check_submodule_using_git(self):
661661 self ._update_submodule (m .group ('submodule' ), m .group ('status' ))
662662 return True
663663 else :
664- log .warning (
664+ log .warn (
665665 'Unexpected output from `git submodule status`:\n {0}\n '
666666 'Will attempt import from {1!r} regardless.' .format (
667667 stdout , self .path ))
@@ -709,7 +709,7 @@ def _check_submodule_no_git(self):
709709 try :
710710 cfg .readfp (gitmodules_fileobj )
711711 except Exception as exc :
712- log .warning ('Malformatted .gitmodules file: {0}\n '
712+ log .warn ('Malformatted .gitmodules file: {0}\n '
713713 '{1} cannot be assumed to be a git submodule.' .format (
714714 exc , self .path ))
715715 return False
@@ -748,7 +748,7 @@ def _update_submodule(self, submodule, status):
748748 'Please complete or abandon any changes in the submodule so that '
749749 'it is in a usable state, then try again.' .format (submodule ))
750750 else :
751- log .warning ('Unknown status {0!r} for git submodule {1!r}. Will '
751+ log .warn ('Unknown status {0!r} for git submodule {1!r}. Will '
752752 'attempt to use the submodule as-is, but try to ensure '
753753 'that the submodule is in a clean state and contains no '
754754 'conflicts or errors.\n {2}' .format (status , submodule ,
@@ -757,7 +757,7 @@ def _update_submodule(self, submodule, status):
757757
758758 err_msg = None
759759 cmd = ['git' , 'submodule' ] + cmd + ['--' , submodule ]
760- log .warning ('{0} {1} submodule with: `{2}`' .format (
760+ log .warn ('{0} {1} submodule with: `{2}`' .format (
761761 action , submodule , ' ' .join (cmd )))
762762
763763 try :
@@ -771,7 +771,7 @@ def _update_submodule(self, submodule, status):
771771 err_msg = stderr
772772
773773 if err_msg is not None :
774- log .warning ('An unexpected error occurred updating the git submodule '
774+ log .warn ('An unexpected error occurred updating the git submodule '
775775 '{0!r}:\n {1}\n {2}' .format (submodule , err_msg ,
776776 _err_help_msg ))
777777
0 commit comments