From 6ce7b8ce6a56e600069ba8585e38095c41586d5d Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Thu, 1 Nov 2012 20:15:02 +1100 Subject: Relax the update.py replace regex. In service.py there is an import like: try: from openstack.common import rpc except: rpc = None and this currently does not get converted. The only downside is some doc strings also get converted. Change-Id: If283b50b8e889c0a1878e30cd7ff58494fabe634 --- update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'update.py') diff --git a/update.py b/update.py index 849c183..83f1ef5 100644 --- a/update.py +++ b/update.py @@ -142,8 +142,8 @@ def _copy_file(path, base, dest_dir): shutil.copy2(path, dest) _replace(dest, - '^from openstack.common', - 'from ' + base + '.openstack.common') + '^( *)from openstack.common', + r'\1from ' + base + '.openstack.common') _replace(dest, '\'openstack\.common', -- cgit