force_bytes(s, encoding='utf-8', strings_only=False, errors='strict') [source]
Similar to smart_bytes, except that lazy instances are resolved to bytestrings, rather than kept as lazy objects.
If strings_only is True, don’t convert (some) non-string-like objects.