[gerrit-client.py] Fix DeprecationWarnings in mass-abandon
Fixes .../gerrit_client.py:424: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead logging.warn("%s CLs match search query: " % len(result)) WARNING:root:100 CLs match search query: .../gerrit_client.py:426: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead logging.warn("[ID: %d] %s" % (change['_number'], change['subject'])) when using `gerrit_client.py mass-abandon`. Also fixes other `logging.warn()` instances in the same method. No behavior change. Bug: none Change-Id: Ib382d78aca18885ad3c8c0a97631dc76ef7cb22d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4631658 Auto-Submit: Nico Weber <thakis@chromium.org> Reviewed-by: Josip Sokcevic <sokcevic@chromium.org> Commit-Queue: Josip Sokcevic <sokcevic@chromium.org>changes/58/4631658/2
parent
2e6738447e
commit
6b33f85fb9
Loading…
Reference in New Issue