This module provides classes for manipulating .discinfo files. .discinfo files can be found on Fedora installation media and provide media information to Anaconda installer.
This class manipulates .discinfo files used by Anaconda installer.
Timestamp in float format
Release description, for example: Fedora 20
Media architecture, for example: x86_64
List with disc numbers or [“ALL”]
Shortcut for setting timestamp to now().
Dump data to a file.
Parameters: | f (file or str) – file-like object or path to file |
---|
Dump data to a string.
Return type: | str |
---|
Load data from a file.
Parameters: | f (file or str) – file-like object or path to file |
---|
Load data from a string.
Parameters: | s (str) – input data |
---|
Validate attributes by running all self._validate_*() methods.
Raises: |
|
---|