summaryrefslogtreecommitdiff
path: root/logging_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'logging_utils.py')
-rw-r--r--logging_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/logging_utils.py b/logging_utils.py
index 0c7d193..a0131b1 100644
--- a/logging_utils.py
+++ b/logging_utils.py
@@ -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"
)