libtmux Reference MCP Search
On this page

libtmux.neo._normalize_tmux_version

View as Markdown

Module
libtmux.neo
Package
libtmux
Source
src/libtmux/neo.py
_normalize_tmux_version ( version : str ) LooseVersion
function [source]
function [source]
_normalize_tmux_version

Convert a tmux version string into a comparable LooseVersion .

tmux master is reported as "master" (or e.g. "3.6a-master"); treat it as larger than any tagged release.

Examples

>>> from libtmux.neo import _normalize_tmux_version
>>> _normalize_tmux_version("3.6a") < _normalize_tmux_version("master")
True
>>> _normalize_tmux_version("3.2a") < _normalize_tmux_version("3.6a")
True

0 declared, 0 inherited

Esc

Type to search.