Skip to content
This repository was archived by the owner on Jun 15, 2018. It is now read-only.

Conversation

@lahwaacz
Copy link

@lahwaacz lahwaacz commented Jul 8, 2014

When passing clean LWPCookieJar() object, it is retyped to False, which resulted in creating new CookieJar(). Comparison to None is necessary.

lahwaacz added 2 commits July 8, 2014 14:45
When passing clean LWPCookieJar() object, it is retyped to False, which resulted in creating new CookieJar(). Comparison to None is necessary.
In Python2, cookielib.LoadError is a subclass of IOError, but in Python3, http.cookiejar.LoadError is a subclass of OSError. Catching LoadError should be portable enough.
@lahwaacz
Copy link
Author

lahwaacz commented Aug 4, 2015

In the last commit I've also fixed exception handling for cookie loading with respect to Python2/Python3 differences.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant