5.6. yapyutils.files.utilities

5.6.1. Module

yapyutils.files.utilities provides file helpers.

5.6.2. Functions

5.6.2.1. sed

yapyutils.files.utilities.sed(filename, pattern, repl, flags=0)[source]

Emulate sed for inplace replacements.

Parameters
  • filename – Name of file for replacement.

  • pattern – Regular expression for re to be replaced.

  • repl – Replacement string.

  • flags – Flags for re.

Returns

None.

Raises

pass-through

5.6.3. Exceptions

exception yapyutils.files.utilities.YapyUtilsHelperError[source]