Various changes.
[python_utils.git] / logging_utils.py
index 0c7d19362d7ed59cf9009053465763e47e6e4709..25919a765ef2430283cb0e67572d326ca62507f0 100644 (file)
@@ -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"
                 )