• Brady J. Garvin's avatar
    utils: Support mixed str/bytes control sequences. · d44c33ad
    Brady J. Garvin authored
    It is not safe for `_preformat_levels` to assume that all of the fields in a
    `TerminalController` have the same type; at least in my environment, some of
    these fields are populated with `bytes` while others remain strings.
    
    This change conditionally applies decoding to each control sequence separately
    using a helper function `_as_string`.  As a side-effect, it also eliminates some
    code repetition in `_preformat_levels`.
    
    Closes #2407.
    d44c33ad
Name
Last commit
Last update
bin Loading commit data...
build/flatpak Loading commit data...
data Loading commit data...
docs Loading commit data...
gettext/its Loading commit data...
help Loading commit data...
pitivi Loading commit data...
plugins/console Loading commit data...
po Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
.pre-commit-config.yaml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
MAINTAINERS Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
getenvvar.py Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
pitivi.doap Loading commit data...
pre-commit.hook Loading commit data...
pylint.rc Loading commit data...