# HG changeset patch # User Franz Glasner # Date 1639791342 -3600 # Node ID 4dbc16ff2670c1ccf9c7bff994eb679ce1b68db8 # Parent a56f1d97a3f3a8820e36774c0e4406f1af6b81d2 .lstrip() seems to be a little bit faster than .rstrip() when testing whether quoting is needed diff -r a56f1d97a3f3 -r 4dbc16ff2670 configmix/config.py --- a/configmix/config.py Sat Dec 18 01:49:48 2021 +0100 +++ b/configmix/config.py Sat Dec 18 02:35:42 2021 +0100 @@ -263,7 +263,7 @@ """ # Quick check whether all of the chars are in _QUOTE_SAFE - if not s.rstrip(_QUOTE_SAFE): + if not s.lstrip(_QUOTE_SAFE): return s # Slow path