Skip to content
Snippets Groups Projects
Commit b6efa934 authored by Kevin Lyda's avatar Kevin Lyda :speech_balloon:
Browse files

Switch from string.letters to string.ascii_letters.

parent 1a9cfc33
Branches
Tags
No related merge requests found
...@@ -285,16 +285,17 @@ def InitCronFSM(): ...@@ -285,16 +285,17 @@ def InitCronFSM():
fsm.AddTransition(',', 'range_step', ActionRangeStepComma, 'next') fsm.AddTransition(',', 'range_step', ActionRangeStepComma, 'next')
# Case: <text> # Case: <text>
fsm.AddTransition(string.letters, 'start', ActionTime, 'text') fsm.AddTransition(string.ascii_letters, 'start', ActionTime, 'text')
fsm.AddTransition(string.letters, 'next', ActionTime, 'text') fsm.AddTransition(string.ascii_letters, 'next', ActionTime, 'text')
fsm.AddTransition(string.letters, 'text', ActionTime, 'text') fsm.AddTransition(string.ascii_letters, 'text', ActionTime, 'text')
fsm.AddEndState('text', ActionTextComma) fsm.AddEndState('text', ActionTextComma)
fsm.AddTransition(',', 'text', ActionTextComma, 'next') fsm.AddTransition(',', 'text', ActionTextComma, 'next')
# Case: <text>-<text> # Case: <text>-<text>
fsm.AddTransition('-', 'text', ActionDash, 'start_text_range') fsm.AddTransition('-', 'text', ActionDash, 'start_text_range')
fsm.AddTransition(string.letters, 'start_text_range', ActionTime, fsm.AddTransition(string.ascii_letters, 'start_text_range', ActionTime,
'text_range')
fsm.AddTransition(string.ascii_letters, 'text_range', ActionTime,
'text_range') 'text_range')
fsm.AddTransition(string.letters, 'text_range', ActionTime, 'text_range')
fsm.AddEndState('text_range', ActionTextRangeComma) fsm.AddEndState('text_range', ActionTextRangeComma)
fsm.AddTransition(',', 'text_range', ActionTextRangeComma, 'next') fsm.AddTransition(',', 'text_range', ActionTextRangeComma, 'next')
# Case: <text>-<text>/<text> # Case: <text>-<text>/<text>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment