MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / _write_resource_zip

Function _write_resource_zip

python/tests/test_opencc.py:45–50  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

43
44
45def _write_resource_zip(path: str) -> None:
46 with zipfile.ZipFile(path, 'w', compression=zipfile.ZIP_STORED) as archive:
47 archive.writestr('s2twp.json', _TEXT_ZIP_CONFIG)
48 archive.writestr('STPhrases.txt', "打印机\t印表機\n")
49 archive.writestr('STCharacters.txt', "鼠\t鼠\n标\t標\n")
50 archive.writestr('TWPhrases.txt', "鼠標\t滑鼠\n")
51
52
53def test_import():

Calls

no outgoing calls

Tested by

no test coverage detected