b9739be699
Typically the pattern of the following happens: >>> s = dict() >>> v = s.get("blah", True) >>> v = strutils.bool_from_string(v) In this case we can avoid converting the value of 'v' to a bool if it was already a boolean (and if it wasn't then the rest of the code can be ran to attempt to convert it to one). This avoids needlessly converting things from bool -> string -> bool which is not really needed in this case. Change-Id: Id7397e91e754ff2c63b3f112e95aedf82cd31717 |
||
---|---|---|
.. | ||
tests | ||
__init__.py | ||
_i18n.py | ||
encodeutils.py | ||
eventletutils.py | ||
excutils.py | ||
fileutils.py | ||
fixture.py | ||
importutils.py | ||
netutils.py | ||
reflection.py | ||
strutils.py | ||
timeutils.py | ||
units.py | ||
uuidutils.py | ||
versionutils.py |