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

Modified constructor if statement #8

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Modified constructor if statement #8

wants to merge 1 commit into from

Conversation

Kogelvis
Copy link

Modified if statement to check if cookiejar is not None, because cookiejars support the iterator
protocol. If you create a cookiejar and supply it to the constructor it will have no cookies to
iterate and therefore cookiejar will be 0 and "if cookiejar:" will result in "False".
But you want to use the supplied cookiejar, this happens if you compare it to None.

…iejars support the iterator

protocol. If you create a cookiejar and supply it to the constructor it will have no cookies to
iterate and therefore cookiejar will be 0 and "if cookiejar:" will be False.
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant