Skip to content

Commit

Permalink
Reverted "ast.literal_eval(handler._low)" back to "eval(handler._low)…
Browse files Browse the repository at this point in the history
…" since handler._low is of CodeType.
  • Loading branch information
pbrod committed Nov 23, 2021
1 parent 02ede6b commit 5fdbe8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions traitsui/editors/range_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ def init(self, handler=None):

if self.low_name == "":
if isinstance(handler._low, CodeType):
self.low = ast.literal_eval(handler._low)
self.low = eval(handler._low)
else:
self.low = handler._low

if self.high_name == "":
if isinstance(handler._low, CodeType):
self.high = ast.literal_eval(handler._high)
self.high = eval(handler._high)
else:
self.high = handler._high

Expand Down

0 comments on commit 5fdbe8a

Please sign in to comment.