Homec4science

textutils: updates string-to-ascii functions

Authored by Jan Aage Lavik <jan.age.lavik@cern.ch> on Mar 6 2012, 19:33.

Description

textutils: updates string-to-ascii functions

  • Amends translate_to_ascii function in textutils to fall back to the strip_accents function used in search_engine.py. This fixes a previously failing test-case in textutils.
  • Moves the definition of strip_accents from search_engine.py to textutils.py. Also moves corresponding tests.
  • Changes the import statements in modules using the strip_accents function accordingly.

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Mar 13 2012, 18:48
Parents
R3600:231caa6b80a4: WebComment: improves list display
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:658661893b99: textutils: updates string-to-ascii functions (authored by Jan Aage Lavik <jan.age.lavik@cern.ch>).Mar 13 2012, 18:48