Ńņ Ź|¾Mc@s%dedd„Zddd„ZdS(sutf-8c Csddk}ddkl}l}l}ddk} ||ƒ\} } || d| dƒ} | i| dd|ƒ} z| i|ƒWd| iƒX|o/|d}||ƒo|i ||ƒqčn||ƒo|i |ƒn|i | |ƒ|o|i d |ƒndS( s°Write content to a path. @param path {str} @param text {unicode} @param encoding {str} The file encoding to use. @param create_backup {bool} Default False. Whether to create a backup file. The path of the backup will be `.bak`. If that path exists it will be overwritten. @param log {logging.Logger} A logger to use for logging. No logging is done if it this is not given. i’’’’N(texiststsplittjoint.s.tmptwbtencodings.baks wrote `%s'( tostos.pathRRRtcodecstopentwritetclosetrenametremovetinfo(tpathttextRt create_backuptlogRRRRRtdirtbasettmp_pathtftbak_path((sF/home/olivier/project/pgsql/contrib/openBarter/cron/write_load_path.pyt write_paths$      c Csæddk}y|i|d|ƒ}Wn4tj o(}|o|id||ƒndSXzKy|iƒ}Wn4tj o(}|o|id||ƒndSXWd|iƒX||fS(sĻReturn the content of the given path. @param path {str} @param encoding {str} Default 'utf-8'. @param log {logging.Logger} A logger to use for logging. No logging is done if it this is not given. @returns {2-tuple} (, ) where `text` is the unicode text content of the file and `encoding` is the encoding of the file. `text` is None if there was an error. Errors are logged via `log.error`. i’’’’Ntrbscould not open `%s': %sscould not read `%s': %s(NN(NN(RR tEnvironmentErrorterrortNonetreadtUnicodeDecodeErrorR (RRRRRtexR((sF/home/olivier/project/pgsql/contrib/openBarter/cron/write_load_path.pyt load_path)s   N(tFalseRRR (((sF/home/olivier/project/pgsql/contrib/openBarter/cron/write_load_path.pyts&