Skip to content

Commit bf8da5a

Browse files
authored
fix routeros CRLF error (#160)
1 parent f57f988 commit bf8da5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validity/compliance/serialization/routeros.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def parse_config(plain_config: str) -> dict:
108108
result = {}
109109
context_path = []
110110
prevlines = []
111-
cfgfile = io.StringIO(plain_config)
111+
cfgfile = io.StringIO(plain_config, newline=None)
112112
for line_num, line in enumerate(cfgfile, start=1):
113113
if line.startswith(("#", ":")) or line == "\n":
114114
continue

0 commit comments

Comments
 (0)