cola.core – Unicode and UNIX helpers

This module provides core functions for handling unicode and UNIX quirks

OSX and others are known to interrupt system calls

The {read,write,wait}_nointr functions handle this situation

cola.core.decode(enc)

decode(encoded_string) returns an unencoded unicode string

cola.core.encode(unenc)

encode(unencoded_string) returns a string encoded in utf-8

cola.core.read_nointr(fh)

Read from a filehandle and retry when interrupted

cola.core.wait_nointr(proc)

Wait on a subprocess and retry when interrupted

cola.core.write_nointr(fh, content)

Write to a filehandle and retry when interrupted

Previous topic

Miscellaneous Utility Modules

Next topic

cola.diffparse – Diff Parsing and Processing

This Page