diff options
author | Aravind Vasudevan <aravindvasudev@google.com> | 2023-10-13 19:22:47 +0000 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-10-13 19:34:26 +0000 |
commit | 8bc5000423aef45900b7fba112458ed586e13251 (patch) | |
tree | 6a10232f09aa81b820aab58475b32d95a2071d31 /subcmds/manifest.py | |
parent | 6a7f73bb9a55ab4463238af4c5096e6bf3789934 (diff) | |
download | git-repo-8bc5000423aef45900b7fba112458ed586e13251.tar.gz |
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 <vapier@google.com>
Tested-by: Aravind Vasudevan <aravindvasudev@google.com>
Commit-Queue: Aravind Vasudevan <aravindvasudev@google.com>
Diffstat (limited to 'subcmds/manifest.py')
-rw-r--r-- | subcmds/manifest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/subcmds/manifest.py b/subcmds/manifest.py index 101240d1..bb6dc930 100644 --- a/subcmds/manifest.py +++ b/subcmds/manifest.py | |||
@@ -136,7 +136,7 @@ to indicate the remote ref to push changes to via 'repo upload'. | |||
136 | manifest.SetUseLocalManifests(not opt.ignore_local_manifests) | 136 | manifest.SetUseLocalManifests(not opt.ignore_local_manifests) |
137 | 137 | ||
138 | if opt.json: | 138 | if opt.json: |
139 | logger.warn("warning: --json is experimental!") | 139 | logger.warning("warning: --json is experimental!") |
140 | doc = manifest.ToDict( | 140 | doc = manifest.ToDict( |
141 | peg_rev=opt.peg_rev, | 141 | peg_rev=opt.peg_rev, |
142 | peg_rev_upstream=opt.peg_rev_upstream, | 142 | peg_rev_upstream=opt.peg_rev_upstream, |
@@ -163,13 +163,13 @@ to indicate the remote ref to push changes to via 'repo upload'. | |||
163 | if output_file != "-": | 163 | if output_file != "-": |
164 | fd.close() | 164 | fd.close() |
165 | if manifest.path_prefix: | 165 | if manifest.path_prefix: |
166 | logger.warn( | 166 | logger.warning( |
167 | "Saved %s submanifest to %s", | 167 | "Saved %s submanifest to %s", |
168 | manifest.path_prefix, | 168 | manifest.path_prefix, |
169 | output_file, | 169 | output_file, |
170 | ) | 170 | ) |
171 | else: | 171 | else: |
172 | logger.warn("Saved manifest to %s", output_file) | 172 | logger.warning("Saved manifest to %s", output_file) |
173 | 173 | ||
174 | def ValidateOptions(self, opt, args): | 174 | def ValidateOptions(self, opt, args): |
175 | if args: | 175 | if args: |