Commit c13c9f79 authored by Arnaud Fontaine's avatar Arnaud Fontaine

ZODB Components: Migration from FS: Fix replacing of `from ... import` statements.

When migrating `Immobilisation` Document, imports of not yet migrated
ImmobilisationMovement Document were also replaced...
parent 52cd9821
...@@ -376,7 +376,7 @@ class ComponentMixin(PropertyRecordableMixin, Base): ...@@ -376,7 +376,7 @@ class ComponentMixin(PropertyRecordableMixin, Base):
for line in f: for line in f:
for (filesystem_module, for (filesystem_module,
zodb_module) in filesystem_zodb_module_mapping_set: zodb_module) in filesystem_zodb_module_mapping_set:
if line.startswith("from " + filesystem_module): if line.startswith("from " + filesystem_module + " "):
line = line.replace(filesystem_module, zodb_module, 1) line = line.replace(filesystem_module, zodb_module, 1)
break break
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment