/opt/cloudlinux/venv/lib/python3.11/site-packages/alembic/util/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/alembic/util/__pycache__/editor.cpython-311.pyc (3710B)
§
SL48ýHõ:ã ó¶ — d dl mZ d dlZd dlmZ d dlmZ d dlmZ d dlmZ d dl m
Z
d dl mZ d d l mZ d d
l m
Z
ddlmZ dd
lmZ ddd„Zdd„Zdd„Zd d„ZdS )!é )ÚannotationsN)Úexists)Újoin)Úsplitext)Ú
check_call)ÚDict)ÚList)ÚMapping)ÚOptionalé ©Úis_posix)ÚCommandErrorÚfilenameÚstrÚenvironúOptional[Dict[str, str]]ÚreturnÚNonec ó´ — |€t j n|} t |¦ « }t || g¦ « dS # t $ r}t d|›d�¦ « |‚d}~ww xY w)aÇ
Opens the given file in a text editor. If the environment variable
``EDITOR`` is set, this is taken as preference.
Otherwise, a list of commonly installed editors is tried.
If no editor matches, an :py:exc:`OSError` is raised.
:param filename: The filename to open. Will be passed verbatim to the
editor command.
:param environ: An optional drop-in replacement for ``os.environ``. Used
mainly for testing.
NzError executing editor (ú))Úosr Ú_find_editorr Ú Exceptionr )r r ÚenvÚeditorÚexcs úe/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/alembic/util/editor.pyÚopen_in_editorr s{ € ð ˜�"Œ*ˆ*¨W€CðLݘcÑ"Ô"ˆÝ�F˜HÐ%Ñ&Ô&Ð&Ð&Ð&øÝð Lð Lð L݈l¸C¸C¸CÐAÑBÔBÈÐKøøøøðLøøøs ’ 4 ´
A¾AÁAúMapping[str, str]c ó" — t ¦ « }t d¦ « D ]H\ }}|| v r?| | }t |¦ « r|c S t j |vr| ||¦ « ŒI|D ]}t
|| ¦ « }|�|c S Œt d¦ « ‚)N)ÚEDITORÚVISUALzSNo suitable editor found. Please set the "EDITOR" or "VISUAL" environment variables)Ú_default_editorsÚ enumerater r ÚsepÚinsertÚ_find_executableÚOSError)r Ú
candidatesÚiÚvarÚuser_choiceÚ candidateÚpaths r r r ) sÄ € Ý!Ñ#Ô#€JÝÐ0Ñ1Ô1ð 2ð 2‰ˆˆ3Ø�'ˆ>ˆ>Ø! #œ,ˆKÝ�kÑ"Ô"ð
#Ø"Ð"Ð"Ð"ÝŒv˜[Ð(Ð(Ø×!Ò! ! [Ñ1Ô1Ð1øàð ð ˆ Ý ¨7Ñ3Ô3ˆØÐ؈KˆKˆKð å
ð 5ñô ð ó r. ú
Optional[str]c ó — t st | ¦ « d dk r| dz
} | dd¦ « t j ¦ « D ]%}t
|| ¦ « }t |¦ « r|c S Œ&d