help='logging.info also prints to stdout.'
)
-# See also: OutputMultiplexer/OutputContext
+# See also: OutputMultiplexer
cfg.add_argument(
'--logging_captures_prints',
action=argparse_utils.ActionNoYes,
open(filename, 'wb', buffering=0) for filename in filenames
]
else:
- if self.destination_bitv & OutputMultiplexer.FILENAMES:
+ if destination_bitv & OutputMultiplexer.FILENAMES:
raise ValueError(
"Filenames argument is required if bitv & FILENAMES"
)
if handles is not None:
self.h = [handle for handle in handles]
else:
- if self.destination_bitv & OutputMultiplexer.FILEHANDLES:
+ if destination_bitv & OutputMultiplexer.Destination.FILEHANDLES:
raise ValueError(
"Handle argument is required if bitv & FILEHANDLES"
)