New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
urllib2 CacheFTPHandler doesn't work on multiple dirs #39633
Comments
This is a fix for bug 738973. Where are functional tests supposed to go? Is the |
Logged In: YES |
Logged In: YES For now at least, should probably just stick the test in the |
Logged In: YES The password is being dropped from the cache - I can't see |
Logged In: YES Thanks Mark FWIW, the idea of having the test in __main__ is that it's a http://mail.python.org/pipermail/python-dev/2003-December/040861.html |
Logged In: YES The problem with test code in the __main__ block is that If that is done, imo it would be better to write the main if __name__ == '__main__':
if __debug__:
import unittest
# test code... |
Logged In: YES Actually, wouldn't it be better to store 'dirs' directly in ie, instead of: just do: Then the only assumption we make is that it is hashable. |
Logged In: YES OK. dirs is a list, though, so it should be: + key = user, host, port, tuple(dirs) |
Logged In: YES Re the tuple() - I think your original patch is better. I Fixed on 2.3 branch: Fixed on trunk: |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: