python-simplemediawiki
python-simplemediawiki copied to clipboard
bug fix: improve detection of 'cookiejar' argument
When passing clean LWPCookieJar() object, it is retyped to False, which resulted in creating new CookieJar(). Comparison to None is necessary.
In the last commit I've also fixed exception handling for cookie loading with respect to Python2/Python3 differences.