ACIL FM
Dark
Refresh
Current DIR:
/usr/lib/python3.9/site-packages/cloudinit
/
usr
lib
python3.9
site-packages
cloudinit
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
analyze
-
chmod
Open
Rename
Delete
cmd
-
chmod
Open
Rename
Delete
config
-
chmod
Open
Rename
Delete
distros
-
chmod
Open
Rename
Delete
filters
-
chmod
Open
Rename
Delete
handlers
-
chmod
Open
Rename
Delete
log
-
chmod
Open
Rename
Delete
mergers
-
chmod
Open
Rename
Delete
net
-
chmod
Open
Rename
Delete
reporting
-
chmod
Open
Rename
Delete
sources
-
chmod
Open
Rename
Delete
__pycache__
-
chmod
Open
Rename
Delete
apport.py
8.27 MB
chmod
View
DL
Edit
Rename
Delete
atomic_helper.py
2.79 MB
chmod
View
DL
Edit
Rename
Delete
cloud.py
3.71 MB
chmod
View
DL
Edit
Rename
Delete
dmi.py
7.86 MB
chmod
View
DL
Edit
Rename
Delete
event.py
2 MB
chmod
View
DL
Edit
Rename
Delete
features.py
4.87 MB
chmod
View
DL
Edit
Rename
Delete
gpg.py
7.99 MB
chmod
View
DL
Edit
Rename
Delete
helpers.py
16.16 MB
chmod
View
DL
Edit
Rename
Delete
importer.py
2.43 MB
chmod
View
DL
Edit
Rename
Delete
lifecycle.py
7.78 MB
chmod
View
DL
Edit
Rename
Delete
netinfo.py
24.02 MB
chmod
View
DL
Edit
Rename
Delete
performance.py
3.1 MB
chmod
View
DL
Edit
Rename
Delete
persistence.py
2.52 MB
chmod
View
DL
Edit
Rename
Delete
registry.py
1022 B
chmod
View
DL
Edit
Rename
Delete
safeyaml.py
10.11 MB
chmod
View
DL
Edit
Rename
Delete
settings.py
2.15 MB
chmod
View
DL
Edit
Rename
Delete
signal_handler.py
1.75 MB
chmod
View
DL
Edit
Rename
Delete
simpletable.py
1.93 MB
chmod
View
DL
Edit
Rename
Delete
socket.py
5.93 MB
chmod
View
DL
Edit
Rename
Delete
ssh_util.py
22.22 MB
chmod
View
DL
Edit
Rename
Delete
stages.py
41.53 MB
chmod
View
DL
Edit
Rename
Delete
subp.py
12.36 MB
chmod
View
DL
Edit
Rename
Delete
templater.py
7.8 MB
chmod
View
DL
Edit
Rename
Delete
temp_utils.py
2.94 MB
chmod
View
DL
Edit
Rename
Delete
type_utils.py
703 B
chmod
View
DL
Edit
Rename
Delete
url_helper.py
34.7 MB
chmod
View
DL
Edit
Rename
Delete
user_data.py
14.44 MB
chmod
View
DL
Edit
Rename
Delete
util.py
91.22 MB
chmod
View
DL
Edit
Rename
Delete
version.py
564 B
chmod
View
DL
Edit
Rename
Delete
warnings.py
3.76 MB
chmod
View
DL
Edit
Rename
Delete
__init__.py
0 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /usr/lib/python3.9/site-packages/cloudinit/persistence.py
# Copyright (C) 2020 Canonical Ltd. # # Author: Daniel Watkins <oddbloke@ubuntu.com> # # This file is part of cloud-init. See LICENSE file for license information. class CloudInitPickleMixin: """Scaffolding for versioning of pickles. This class implements ``__getstate__`` and ``__setstate__`` to provide lightweight versioning of the pickles that are generated for classes which use it. Versioning is done at the class level. The current version of a class's pickle should be set in the class variable ``_ci_pkl_version``, as an int. If not overridden, it will default to 0. On unpickle, the object's state will be restored and then ``self._unpickle`` is called with the version of the stored pickle as the only argument: this is where classes should implement any deserialization fixes they require. (If the stored pickle has no version, 0 is passed.) """ _ci_pkl_version = 0 def __getstate__(self): """Persist instance state, adding a pickle version attribute. This adds a ``_ci_pkl_version`` attribute to ``self.__dict__`` and returns that for serialisation. The attribute is stripped out in ``__setstate__`` on unpickle. The value of ``_ci_pkl_version`` is ``type(self)._ci_pkl_version``. """ state = self.__dict__.copy() state["_ci_pkl_version"] = type(self)._ci_pkl_version return state def __setstate__(self, state: dict) -> None: """Restore instance state and handle missing attributes on upgrade. This will be called when an instance of this class is unpickled; the previous instance's ``__dict__`` is passed as ``state``. This method removes the pickle version from the stored state, restores the remaining state into the current instance, and then calls ``self._unpickle`` with the version (or 0, if no version is found in the stored state). See https://docs.python.org/3/library/pickle.html#object.__setstate__ for further background. """ version = state.pop("_ci_pkl_version", 0) self.__dict__.update(state) self._unpickle(version) def _unpickle(self, ci_pkl_version: int) -> None: """Perform any deserialization fixes required. By default, this does nothing. Classes using this mixin should override this method if they have fixes they need to apply. ``ci_pkl_version`` will be the version stored in the pickle for this object, or 0 if no version is present. """
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply