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
http://en.wikipedia.org/wiki/PCLSRing
http://en.wikipedia.org/wiki/Unix_philosophy#Worse_is_better
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