X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=logging_utils.py;h=25919a765ef2430283cb0e67572d326ca62507f0;hb=b10d30a46e601c9ee1f843241f2d69a1f90f7a94;hp=0c7d19362d7ed59cf9009053465763e47e6e4709;hpb=c79ecbf708a63a54a9c3e8d189b65d4794930082;p=python_utils.git diff --git a/logging_utils.py b/logging_utils.py index 0c7d193..25919a7 100644 --- a/logging_utils.py +++ b/logging_utils.py @@ -95,7 +95,7 @@ cfg.add_argument( help='logging.info also prints to stdout.' ) -# See also: OutputMultiplexer/OutputContext +# See also: OutputMultiplexer cfg.add_argument( '--logging_captures_prints', action=argparse_utils.ActionNoYes, @@ -269,7 +269,7 @@ class OutputMultiplexer(object): 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" ) @@ -278,7 +278,7 @@ class OutputMultiplexer(object): 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" )