File: __init__.py

package info (click to toggle)
python-mutf8 1.0.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 124 kB
  • sloc: python: 342; ansic: 207; makefile: 3
file content (21 lines) | stat: -rw-r--r-- 610 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""
Utility methods for handling oddities in character encoding encountered
when parsing and writing JVM ClassFiles or object serialization archives.

MUTF-8 is the same as CESU-8, but with different encoding for 0x00 bytes.

.. note::

    http://bugs.python.org/issue2857 was an attempt in 2008 to get support
    for MUTF-8/CESU-8 into the python core.
"""


try:
    from mutf8.cmutf8 import decode_modified_utf8, encode_modified_utf8
except ImportError:
    from mutf8.mutf8 import decode_modified_utf8, encode_modified_utf8


# Shut up linters.
ALL_IMPORTS = [decode_modified_utf8, encode_modified_utf8]