v0.2.1: Fix compatibility issue with recent pywikibot

This commit is contained in:
2022-05-29 16:14:25 +02:00
parent a0ac0a95b1
commit c32577c7dc
2 changed files with 8 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ based projects of [User:JogoBot](https://de.wikipedia.org/wiki/Benutzer:JogoBot)
## Installation
```shell
pip install git+https://git.golderweb.de/wiki/jogobot.git@v0.2#egg=jogobot
pip install git+https://git.golderweb.de/wiki/jogobot.git@v0.2.1#egg=jogobot
```
## Bugs
@@ -23,8 +23,11 @@ pip install git+https://git.golderweb.de/wiki/jogobot.git@v0.2#egg=jogobot
* 0.2
- package installable via setuptools/pip
* 0.2.1
- Fix compatibility issue with recent pywikibot
## License
GPLv3+
## Author Information
Copyright 2018 Jonathan Golder <jonathan@golderweb.de>
Copyright 2022 Jonathan Golder <jonathan@golderweb.de>

View File

@@ -3,7 +3,7 @@
#
# jogobot.py
#
# Copyright 2017 Jonathan Golder <jonathan@golderweb.de>
# Copyright 2022 Jonathan Golder <jonathan@golderweb.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -70,9 +70,9 @@ def output( text, level="INFO", decoder=None, newline=True,
pass
if ( level == DEBUG ):
logoutput(text, decoder, newline, _level, layer, **kwargs)
logoutput(text, decoder=decoder, newline=newline, level=_level, layer=layer, **kwargs)
else:
logoutput(text, decoder, newline, _level, **kwargs)
logoutput(text, decoder=decoder, newline=newline, level=_level, **kwargs)
# Since we like to have timestamps in Output for logging, we replace