Skip to content

Commit 2f42ec6

Browse files
authored
Enable inline comments when reading files (#380)
1 parent e8807b8 commit 2f42ec6

File tree

1 file changed

+1
-1
lines changed
  • canopen/objectdictionary

1 file changed

+1
-1
lines changed

canopen/objectdictionary/eds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222

2323
def import_eds(source, node_id):
24-
eds = RawConfigParser()
24+
eds = RawConfigParser(inline_comment_prefixes=(';',))
2525
eds.optionxform = str
2626
if hasattr(source, "read"):
2727
fp = source

0 commit comments

Comments
 (0)