Skip to content

Commit 5fdbe8a

Browse files
committed
Reverted "ast.literal_eval(handler._low)" back to "eval(handler._low)" since handler._low is of CodeType.
1 parent 02ede6b commit 5fdbe8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

traitsui/editors/range_editor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ def init(self, handler=None):
122122

123123
if self.low_name == "":
124124
if isinstance(handler._low, CodeType):
125-
self.low = ast.literal_eval(handler._low)
125+
self.low = eval(handler._low)
126126
else:
127127
self.low = handler._low
128128

129129
if self.high_name == "":
130130
if isinstance(handler._low, CodeType):
131-
self.high = ast.literal_eval(handler._high)
131+
self.high = eval(handler._high)
132132
else:
133133
self.high = handler._high
134134

0 commit comments

Comments
 (0)