/opt/cloudlinux/venv/lib/python3.11/site-packages/cllicense/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/cllicense/__pycache__/license.cpython-311.pyc (12813B)
§
°TÐ+ˆUã ó@ — d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlmZ d dlm Z m
Z
mZ d dlm
Z
mZmZ d dlZd dlmZmZ d dlmZ dd lmZ ej d
¦ « ZdZdZd
efd„Z ddee dee dee d
dfd„Z ded
efd„Z! G d„ d¦ « Z"dS )é N)ÚJSONDecodeError)ÚPath)ÚPIPEÚSTDOUTÚrun)ÚDictÚOptionalÚUnion)Úprint_dictionaryÚreplace_params)ÚCloudlinuxLicenseLibé )Úparse_cloudlinux_packages_optszcloudlinux-licensez/usr/sbin/clnreg_ksz--activationkey=-Úreturnc ó — t t dgt t d¬¦ « } n# t t
f$ r Y dS w xY wt ¦ « | j pdv S )aå Return True if the installed clnreg_ks advertises the --activationkey=- sentinel.
Probed via `clnreg_ks --help` (which forwards to `rhnreg_ks --help`); the literal
`--activationkey=-` is a locale-stable option token (translators preserve option
syntax), so the check is robust. stderr is merged into stdout in case the help text
is emitted there. Best-effort: any failure to probe is treated as "unsupported" and
the caller falls back to the legacy argv form.
z--helpF)ÚstdoutÚstderrÚcheckó ) r Ú CLNREG_KSr r ÚOSErrorÚ
ValueErrorÚACTIVATIONKEY_STDINÚencoder )Úresults úpy/cllicense/license.pyÚ_clnreg_supports_stdin_keyr # si € ðÝ•i Ð*µ4ÅÈeÐTÑTÔTˆˆøÝ•ZÐ ð ð ð Øˆuˆuðøøøå×%Ò%Ñ'Ô'¨F¬MÐ,@¸SÐAÐAs ‚$' §<»<ÚerrorÚdetailsÚcontextc óÔ — dt j ¦ « i}| �| |d<