Skip to content

Commit 3d57a1c

Browse files
SudlavAndreas Valdusson
andauthored
Making sure the FileInfo section is copied from the imported EDS to the exported EDS (#304)
Co-authored-by: Andreas Valdusson <[email protected]>
1 parent 60f064e commit 3d57a1c

File tree

1 file changed

+4
-4
lines changed
  • canopen/objectdictionary

1 file changed

+4
-4
lines changed

canopen/objectdictionary/eds.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,10 @@ def export_record(var, eds):
369369
"EdsVersion": 4.2,
370370
}
371371

372-
file_info.setdefault("ModificationDate", defmtime.strftime("%m-%d-%Y"))
373-
file_info.setdefault("ModificationTime", defmtime.strftime("%I:%m%p"))
374-
for k, v in origFileInfo.items():
375-
file_info.setdefault(k, v)
372+
file_info.setdefault("ModificationDate", defmtime.strftime("%m-%d-%Y"))
373+
file_info.setdefault("ModificationTime", defmtime.strftime("%I:%m%p"))
374+
for k, v in origFileInfo.items():
375+
file_info.setdefault(k, v)
376376

377377
eds.add_section("FileInfo")
378378
for k, v in file_info.items():

0 commit comments

Comments
 (0)