projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Various changes.
[python_utils.git]
/
logging_utils.py
diff --git
a/logging_utils.py
b/logging_utils.py
index 0c7d19362d7ed59cf9009053465763e47e6e4709..25919a765ef2430283cb0e67572d326ca62507f0 100644
(file)
--- a/
logging_utils.py
+++ b/
logging_utils.py
@@
-95,7
+95,7
@@
cfg.add_argument(
help='logging.info also prints to stdout.'
)
help='logging.info also prints to stdout.'
)
-# See also: OutputMultiplexer
/OutputContext
+# See also: OutputMultiplexer
cfg.add_argument(
'--logging_captures_prints',
action=argparse_utils.ActionNoYes,
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:
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"
)
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 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"
)
raise ValueError(
"Handle argument is required if bitv & FILEHANDLES"
)