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 <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Alex Miller <milleral@chromium.org>
diff --git a/client/common_lib/cros/autoupdater.py b/client/common_lib/cros/autoupdater.py
index abd523a..cb31a9f 100644
--- a/client/common_lib/cros/autoupdater.py
+++ b/client/common_lib/cros/autoupdater.py
@@ -155,7 +155,7 @@
         try:
             self._run('initctl stop update-engine')
         except error.AutoservRunError:
-            logging.warn('Stopping update-engine service failed. Already dead?')
+            logging.warning('Stopping update-engine service failed. Already dead?')
         self._run('initctl start update-engine')
 
         if self.check_update_status() != UPDATER_IDLE:
@@ -235,13 +235,13 @@
                 LOCAL_STATEFUL_UPDATE_PATH)
 
         if not os.path.exists(stateful_update_path):
-            logging.warn('Could not find Chrome OS source location for '
+            logging.warning('Could not find Chrome OS source location for '
                          'stateful_update script at %s, falling back to chroot '
                          'copy.', stateful_update_path)
             stateful_update_path = LOCAL_CHROOT_STATEFUL_UPDATE_PATH
 
         if not os.path.exists(stateful_update_path):
-            logging.warn('Could not chroot stateful_update script, falling '
+            logging.warning('Could not chroot stateful_update script, falling '
                          'back on client copy.')
             statefuldev_script = REMOTE_STATEUL_UPDATE_PATH
         else:
@@ -262,7 +262,7 @@
     def revert_boot_partition(self):
         """Revert the boot partition."""
         part = self.rootdev('-s')
-        logging.warn('Reverting update; Boot partition will be %s', part)
+        logging.warning('Reverting update; Boot partition will be %s', part)
         return self._run('/postinst %s 2>&1' % part)