Files
VPNaaS-Migrator/ipsec_migrator/__pycache__/tables.cpython-311.pyc
T

35 lines
2.2 KiB
Plaintext
Raw Normal View History

2026-07-21 15:05:52 +03:00
§
P1^j<ãó2dZddlmZddlmZ dddZdS)a;ASCII key/value table printing.
Replaces the bash original's ad-hoc `echo`/`printf` table blocks (STEP 1, 7,
8) and the nameref-based print_map_as_table() helper (STAGE 3) with a single
generic function. Python has no need for bash's nameref indirection -- the
dict is just passed directly.
The bash version used a Unicode combining-overline row as an ersatz bottom
border; that's purely decorative with no functional role, so it's replaced
here with a plain ASCII divider of matching visual weight -- a deliberate,
low-risk cosmetic judgment call, not a fidelity gap.
é)Ú annotations)ÚIterableNé$Úrowsú*dict[str, str] | Iterable[tuple[str, str]]Úcol1ÚstrÚcol2Útitleú
str | NoneÚwidth1ÚintÚwidth2ÚreturnÚNonec óBt|t¦«r!t| ¦«¦«nt|¦«}d||zdzz}|r.t |¦«t |¦«t |¦«nt d||zdzz¦«t d|d|d|d|d¦«t d||zdzz¦«|D]#\}} t d|d|d| d|d¦«Œ$t d||zdzz¦«|rt ¦«dSdS) NúÚ_z| ú<z | z-)Ú
isinstanceÚdictÚlistÚitemsÚprint)
rrr
r r
rrÚborderÚkeyÚvalues
ú-/root/vkcloud/vpnaas/ipsec_migrator/tables.pyÚprint_kv_tabler!sjõ#-¨Tµ4Ñ"8Ô"8Ð HDÑ Ô Ð ½dÀ4¹j¼j€EØ
F˜VO 
(€Fà ð
ˆf‰
Œ
ˆ
Ý
ˆe‰ Œ ˆ Ý
ˆf‰
Œ
ˆ
ˆ
å
ˆcV˜f_  Ð
4ˆ
4