(self, text)
| 147 | pylogging_level = pylogging_logger.getEffectiveLevel() |
| 148 | class Out: |
| 149 | def write(self, text): |
| 150 | # `logging` module appends newlines, but so does the `print()` |
| 151 | # functions in our caller message() and log() fns, so we need to |
| 152 | # remove them here. |
| 153 | text = text.rstrip('\n') |
| 154 | if text: |
| 155 | pylogging_logger.log(pylogging_level, text) |
| 156 | def flush(self): |
| 157 | pass |
| 158 | ret = Out() |