Removed the newline in the parser.

master
Ruben Dahl 2023-04-09 12:59:21 +02:00
parent 252c8292dc
commit 1ee9ec318b
No known key found for this signature in database
GPG Key ID: D9B193810A18673E
1 changed files with 4 additions and 2 deletions

View File

@ -27,11 +27,13 @@ class Pyne:
for row, line in enumerate(f.readlines(), 1):
for var in datatypes.VAR_MATCH:
regex = re.compile(var)
res = regex.match(line)
res = regex.match(line[:-1])
if res:
objects.append(
PyneObject(
datatypes.Variable(None, datatypes.VAR_MATCH[var], line)
datatypes.Variable(
None, datatypes.VAR_MATCH[var], line[:-1]
)
)
)
break