Repository navigation
No new features. One structural fix, and it breaks an import path.
Changed
-
The fold family moved from
cjkfold.normalizetocjkfold.folding; the two
writes moved tocjkfold.rewrite. Nothing about the functions changed —
from cjkfold import fold, normalize, strip_invisiblebehaves exactly as it did.Why: a function named
normalizecannot live in a module namednormalizewithout
one of the two losing its name, andimport a.b as cmeansc = a.b. So
import cjkfold.normalize as mhanded you the function, andm.foldraised
AttributeError. Every name now means one thing:cjkfold.normalizeis the
function,cjkfold.foldingis the module. (af57ad7)What breaks:
from cjkfold.normalize import fold— a path nothing ever
documented, and it now fails with a plainModuleNotFoundErrorinstead of an
AttributeErrorfrom something that was never a module. Every documented import
is untouched.
Tests
scripts/acceptance.pygained import-path checks, including one that the old
path is gone. (af57ad7)