From 8bc5000423aef45900b7fba112458ed586e13251 Mon Sep 17 00:00:00 2001 From: Aravind Vasudevan Date: Fri, 13 Oct 2023 19:22:47 +0000 Subject: Update logger.warn to logger.warning Bug: 305035810 Change-Id: Ic2b35d5c3cbe92480c24da612f29382f5d26d4aa Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/389414 Reviewed-by: Mike Frysinger Tested-by: Aravind Vasudevan Commit-Queue: Aravind Vasudevan --- project.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'project.py') diff --git a/project.py b/project.py index 642c123f..80c20add 100644 --- a/project.py +++ b/project.py @@ -1262,7 +1262,7 @@ class Project(object): try: platform_utils.remove(tarpath) except OSError as e: - logger.warn("warn: Cannot remove archive %s: %s", tarpath, e) + logger.warning("warn: Cannot remove archive %s: %s", tarpath, e) self._CopyAndLinkFiles() return SyncNetworkHalfResult(True) @@ -1759,7 +1759,7 @@ class Project(object): """ if self.IsDirty(): if force: - logger.warn( + logger.warning( "warning: %s: Removing dirty project: uncommitted changes " "lost.", self.RelPath(local=False), @@ -3038,7 +3038,7 @@ class Project(object): # hardlink below. if not filecmp.cmp(stock_hook, dst, shallow=False): if not quiet: - logger.warn( + logger.warning( "warn: %s: Not replacing locally modified %s hook", self.RelPath(local=False), name, @@ -4336,7 +4336,7 @@ class ManifestProject(MetaProject): self.config.SetBoolean("repo.worktree", worktree) if is_new: self.use_git_worktrees = True - logger.warn("warning: --worktree is experimental!") + logger.warning("warning: --worktree is experimental!") if archive: if is_new: @@ -4400,7 +4400,7 @@ class ManifestProject(MetaProject): self.config.SetBoolean("repo.git-lfs", git_lfs) if not is_new: - logger.warn( + logger.warning( "warning: Changing --git-lfs settings will only affect new " "project checkouts.\n" " Existing projects will require manual updates.\n" @@ -4512,7 +4512,7 @@ class ManifestProject(MetaProject): submanifest = "" if self.manifest.path_prefix: submanifest = f"for {self.manifest.path_prefix} " - logger.warn( + logger.warning( "warning: git update of superproject %s failed, " "repo sync will not use superproject to fetch source; " "while this error is not fatal, and you can continue to " -- cgit v1.2.3-54-g00ecf