From patchwork Thu Aug 4 07:20:04 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Feng Yang X-Patchwork-Id: 1034212 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p747KGQS003098 for ; Thu, 4 Aug 2011 07:20:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752101Ab1HDHUO (ORCPT ); Thu, 4 Aug 2011 03:20:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21054 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751993Ab1HDHUN (ORCPT ); Thu, 4 Aug 2011 03:20:13 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p747KC9s006249 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 4 Aug 2011 03:20:12 -0400 Received: from fyang.redhat.com (dhcp-65-138.nay.redhat.com [10.66.65.138]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p747KAAV004786; Thu, 4 Aug 2011 03:20:11 -0400 From: fyang@redhat.com To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Feng Yang Subject: [PATCH] KVM Test: Drop sre module in script and use re module. Date: Thu, 4 Aug 2011 15:20:04 +0800 Message-Id: <1312442404-6797-1-git-send-email-fyang@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 04 Aug 2011 07:20:17 +0000 (UTC) From: Feng Yang sre moudle have been deprecated in python 2.6 Signed-off-by: Feng Yang --- client/virt/virt_test_setup.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/virt/virt_test_setup.py b/client/virt/virt_test_setup.py index 1539cac..f2ff38b 100644 --- a/client/virt/virt_test_setup.py +++ b/client/virt/virt_test_setup.py @@ -1,7 +1,7 @@ """ Library to perform pre/post test setup for KVM autotest. """ -import os, logging, time, re, sre, random +import os, logging, time, re, random from autotest_lib.client.common_lib import error from autotest_lib.client.bin import utils @@ -60,7 +60,7 @@ class TransparentHugePageConfig(object): tmp_list = re.split(';', test_config) while len(tmp_list) > 0: tmp_cfg = tmp_list.pop() - test_cfg[re.split(":", tmp_cfg)[0]] = sre.split(":", tmp_cfg)[1] + test_cfg[re.split(":", tmp_cfg)[0]] = re.split(":", tmp_cfg)[1] # Save host current config, so we can restore it during cleanup # We will only save the writeable part of the config files original_config = {}