Fixes :exc:`AttributeError` when :meth:`subprocess.check_output` is used with argument input=None and either of the arguments encoding or errors are used.
Fixes :exc:`AttributeError` when :meth:`subprocess.check_output` is used with argument input=None and either of the arguments encoding or errors are used.