summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--update.py4
1 files changed, 2 insertions, 2 deletions
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',