commit | 04be2bd5e4666a5c253e9c30ab20555e04286032 | [log] [tgz] |
---|---|---|
author | Ilja H. Friedel <[email protected]> | Wed May 07 21:29:59 2014 -0700 |
committer | chrome-internal-fetch <[email protected]> | Thu May 08 08:35:24 2014 +0000 |
tree | d7da4e3b7122ab7b17e1c2b41bb7fac83817d9e2 | |
parent | cc57468273de53b00351536c79f9cf0c93879d2f [diff] [blame] |
Autotest: Change logging.warn() to logging.warning(). logging.warn() is deprecated. See http://bugs.python.org/issue13235 Substitution was performed via ~/cros/src/third_party/autotest/files$ find ./ -type f | xargs sed -i 's/logging.warn(/logging.warning(/' BUG=None. TEST=There should be one-- and preferably only one --obvious way to do it. Change-Id: Ie5665743121a49f7fbd5d1f47896a7c65e87e489 Reviewed-on: https://chromium-review.googlesource.com/198793 Commit-Queue: Ilja Friedel <[email protected]> Tested-by: Ilja Friedel <[email protected]> Reviewed-by: Alex Miller <[email protected]>
diff --git a/server/server_job.py b/server/server_job.py index 1936b01..2d5a93d 100644 --- a/server/server_job.py +++ b/server/server_job.py
@@ -635,7 +635,7 @@ try: shutil.rmtree(temp_control_file_dir) except Exception, e: - logging.warn('Could not remove temp directory %s: %s', + logging.warning('Could not remove temp directory %s: %s', temp_control_file_dir, e) if machines and (collect_crashdumps or collect_crashinfo):