$60 GRAYBYTE WORDPRESS FILE MANAGER $29

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/lib/python3.6/site-packages/tuned/profiles/__pycache__/

HOME
Current File : /lib/python3.6/site-packages/tuned/profiles/__pycache__//merger.cpython-36.pyc
3

�<�e��@s(ddlZddlmZGdd�de�ZdS)�N)�reducec@s(eZdZdZdd�Zdd�Zdd�ZdS)	�Mergerz0
	Tool for merging multiple profiles into one.
	cCsdS)N�)�selfrr�/usr/lib/python3.6/merger.py�__init__	szMerger.__init__cCst|j|�}|S)z�
		Merge multiple configurations into one. If there are multiple units of the same type, option 'devices'
		is set for each unit with respect to eliminating any duplicate devices.
		)r�
_merge_two)rZconfigsZ
merged_configrrr�mergeszMerger.mergecCs�|jj|j��x�t|jj��D�]~\}}|js:||jkrF||j|<q |j|j|_|j|j|_|j|j|_|j	dk	r�|j	|j|_	|j
dk	r�|j
|j|_
|jdk	r�|j|j|_|jdk	r�|j|j|_|j
dk	r�|j
|j|_
|jdk	�rx"|jD]}|j|jj|d�q�Wd|_|dk�r�|j|jjdd�dk	�r�|j|jjdd�}|j|jj|j�||j|jd|j|jd<q |j|jj|j�q W|S)z�
		Merge two profiles. The configuration of units with matching names are updated with options
		from the newer profile. If the 'replace' options of the newer unit is 'True', all options from the
		older unit are dropped.
		N�script)Zoptions�update�listZunits�items�replace�typeZenabledZdevicesZdevices_udev_regexZ
cpuinfo_regexZuname_regexZ
script_preZscript_postZdrop�pop�get)rZ	profile_aZ	profile_bZ	unit_nameZunitZoptionr
rrrrs6




$"zMerger._merge_twoN)�__name__�
__module__�__qualname__�__doc__rr	rrrrrrsr)�collections�	functoolsr�objectrrrrr�<module>s


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
13 Mar 2025 8.42 AM
root / root
0755
__init__.cpython-36.opt-1.pyc
0.384 KB
11 Mar 2025 7.42 AM
root / root
0644
__init__.cpython-36.pyc
0.384 KB
11 Mar 2025 7.42 AM
root / root
0644
exceptions.cpython-36.opt-1.pyc
0.342 KB
11 Mar 2025 7.42 AM
root / root
0644
exceptions.cpython-36.pyc
0.342 KB
11 Mar 2025 7.42 AM
root / root
0644
factory.cpython-36.opt-1.pyc
0.467 KB
11 Mar 2025 7.42 AM
root / root
0644
factory.cpython-36.pyc
0.467 KB
11 Mar 2025 7.42 AM
root / root
0644
loader.cpython-36.opt-1.pyc
4.105 KB
11 Mar 2025 7.42 AM
root / root
0644
loader.cpython-36.pyc
4.105 KB
11 Mar 2025 7.42 AM
root / root
0644
locator.cpython-36.opt-1.pyc
3.617 KB
11 Mar 2025 7.42 AM
root / root
0644
locator.cpython-36.pyc
3.617 KB
11 Mar 2025 7.42 AM
root / root
0644
merger.cpython-36.opt-1.pyc
1.832 KB
11 Mar 2025 7.42 AM
root / root
0644
merger.cpython-36.pyc
1.832 KB
11 Mar 2025 7.42 AM
root / root
0644
profile.cpython-36.opt-1.pyc
1.776 KB
11 Mar 2025 7.42 AM
root / root
0644
profile.cpython-36.pyc
1.776 KB
11 Mar 2025 7.42 AM
root / root
0644
unit.cpython-36.opt-1.pyc
3.529 KB
11 Mar 2025 7.42 AM
root / root
0644
unit.cpython-36.pyc
3.529 KB
11 Mar 2025 7.42 AM
root / root
0644
variables.cpython-36.opt-1.pyc
2.926 KB
11 Mar 2025 7.42 AM
root / root
0644
variables.cpython-36.pyc
2.926 KB
11 Mar 2025 7.42 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF