5 Commits

2 changed files with 19 additions and 8 deletions

View File

@@ -1,22 +1,33 @@
# wiki-jogobot-core
# jogobot
This python module contains code shared between several [Pywikibot](https://www.mediawiki.org/wiki/Manual:Pywikibot)
based projects of [User:JogoBot](https://de.wikipedia.org/wiki/Benutzer:JogoBot) on the
[German Wikipedia](https://de.wikipedia.org/wiki/Wikipedia:Hauptseite).
## Requirements
* Python 3.4+ (at least it is only tested with those)
* pywikibot-core 2.0
* pywikibot-core 2.0+ ([Installation HowTo](https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation))
## Installation
```shell
pip install git+https://git.golderweb.de/wiki/jogobot.git@v0.2.1#egg=jogobot
```
## Bugs
[wiki-jogobot-core on fs.golderweb.de (de)](https://fs.golderweb.de/proj22)
[jogobot Issues](https://git.golderweb.de/wiki/jogobot/issues)
## Version
## Versions
* 0.1
- first stable release
* 0.2
- package installable via setuptools/pip
* 0.2.1
- Fix compatibility issue with recent pywikibot
## License
GPLv3+
## Author Information
Copyright 2017 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