> ch = unichr if sys.version_info < (3,) else chr
> delimiters = ''.join([
> † † ch(45), # hyphen-minus
> † † ch(47), # solidus
> † † ch(65380), # halfwidth ideographic commaBut this is not a computation according to the specs but merely a different
> † † ch(65381), # halfwidth katakana middle dot
way to store the hard-coded values.
The re-computation code has two purposes:
codebase for 2.x and 3.x would require so many switches and ugly
workarounds that it would complicate maintenance in an unsupportable way.
import 2.x or 3.x versions of the modules. This should save a lot of work
when trying to keep the "minimal DU" in sync with Docutils.