March 24, 2020
9:51 p.m.
Le mar. 24 mars 2020 à 20:06, Paul Sokolovsky <pmiscml@gmail.com> a écrit :
=== config.something === # If you'd like to remove some prefix from your lines, set it here REMOVE_PREFIX = "" ======
=== src.py === ... line = line.cutprefix(config.REMOVE_PREFIX) ... ======
Just use: if config.REMOVE_PREFIX: line = line.cutprefix(config.REMOVE_PREFIX) Victor -- Night gathers, and now my watch begins. It shall not end until my death.