Skip to content

Commit aed1636

Browse files
committedSep 27, 2023
remove use of literal_eval
1 parent b461d11 commit aed1636

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎nrel/hive/model/roadnetwork/link_id.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
from ast import literal_eval
21
from typing import Optional, Tuple, Any
3-
42
from nrel.hive.util.typealiases import LinkId
53

64
NodeId = Any
@@ -39,8 +37,8 @@ def extract_node_ids(
3937
)
4038
else:
4139
try:
42-
src = literal_eval(result[0])
43-
dst = literal_eval(result[1])
40+
src = str(result[0])
41+
dst = str(result[1])
4442
except ValueError:
4543
return Exception(f"LinkId {link_id} cannot be parsed."), None
4644

0 commit comments

Comments
 (0)
Please sign in to comment.