# HG changeset patch # User Franz Glasner # Date 1619366726 -7200 # Node ID d8361dd70d2dc1ce4e9ac74ca327885f7d798343 # Parent 2a2f5b86fe342cbfefcb6d1e9a06d249725c97d9 FIX: Map unicode strings to boolean values because this is the canonical texttype in confixmmix diff -r 2a2f5b86fe34 -r d8361dd70d2d configmix/config.py --- a/configmix/config.py Sun Apr 25 16:09:00 2021 +0200 +++ b/configmix/config.py Sun Apr 25 18:05:26 2021 +0200 @@ -122,8 +122,10 @@ return s # Conversion of booleans - _BOOL_CVT = {'1': True, 'yes': True, 'true': True, 'on': True, - '0': False, 'no': False, 'false': False, 'off': False} + _BOOL_CVT = { + u('1'): True, u('yes'): True, u('true'): True, u('on'): True, + u('0'): False, u('no'): False, u('false'): False, u('off'): False + } def getfloatvar_s(self, varname, default=_MARKER): """Get a (possibly substituted) variable and convert text to a