summary refs log tree commit diff
path: root/gtkui.py
diff options
context:
space:
mode:
authorClayton G. Hobbs <clay@lakeserv.net>2016-01-02 13:31:42 -0500
committerClayton G. Hobbs <clay@lakeserv.net>2016-01-02 13:31:42 -0500
commit93f09d0d9631bb1c90afd8744ca16bf4b7b79e3b (patch)
tree1f1f8a9b8a5678d32007b0c30bef860a90d01920 /gtkui.py
parent557f0b60cb19b22fd79eb1f81a58139c4942f2c4 (diff)
Rewrote NumberParser.parse_all_numbers()
Its control flow was confusing before; now it's much more
straightforward.  We make a string representing classes of words, split
that by a regular expression for number words, then parse each number
and build up our return string and list.  It works just as well as the
previous method, is a bit shorter, and I feel that it's clearer as well.
Diffstat (limited to 'gtkui.py')
0 files changed, 0 insertions, 0 deletions