Skip to content

Commit

Permalink
Fixed problem using Python 3.6
Browse files Browse the repository at this point in the history
- Fixes INTI-CMNB#52
- StreamHandler.setStream introduced in 3.7
  • Loading branch information
set-soft committed Feb 16, 2021
1 parent e3d79b6 commit 95b48ab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 1 addition & 2 deletions kibot/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 95b48ab

Please sign in to comment.