Fixed problem using Python 3.6

- Fixes #52
- StreamHandler.setStream introduced in 3.7
This commit is contained in:
Salvador E. Tropea 2021-02-16 12:02:41 -03:00
parent e3d79b6527
commit 95b48ab053
3 changed files with 12 additions and 2 deletions

View File

@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.10.0-3] - 2021-02-16
### Fixed
- Problem using Python 3.6 (StreamHandler.setStream introduced in 3.7)
## [0.10.0-2] - 2021-02-12
### Fixed
- Missing python3-distutils dependency on Debian package.

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
kibot (0.10.0-3) stable; urgency=medium
* Fixed problem using Python 3.6 (#52)
(StreamHandler.setStream introduced in 3.7)
-- Salvador E. Tropea <salvador@inti.gob.ar> Tue, 16 Feb 2021 12:01:03 -0300
kibot (0.10.0-2) stable; urgency=medium
* Added python3-distutils as dependency.

View File

@ -122,8 +122,7 @@ def init():
logger.addHandler(ch)
# Handler for t info.
# Outputs to stdout
ch = logging.StreamHandler()
ch.setStream(sys.stdout)
ch = logging.StreamHandler(sys.stdout)
ch.addFilter(FilterOnlyInfo())
ch.setFormatter(CustomFormatter(sys.stdout))
logger.addHandler(ch)