LEFT | RIGHT |
1 """HTTP cookie handling for web clients. | 1 """HTTP cookie handling for web clients. |
2 | 2 |
3 This module has (now fairly distant) origins in Gisle Aas' Perl module | 3 This module has (now fairly distant) origins in Gisle Aas' Perl module |
4 HTTP::Cookies, from the libwww-perl library. | 4 HTTP::Cookies, from the libwww-perl library. |
5 | 5 |
6 Docstrings, comments and debug strings in this code refer to the | 6 Docstrings, comments and debug strings in this code refer to the |
7 attributes of the HTTP cookie system as cookie-attributes, to distinguish | 7 attributes of the HTTP cookie system as cookie-attributes, to distinguish |
8 them clearly from Python attributes. | 8 them clearly from Python attributes. |
9 | 9 |
10 Class diagram (note that BSDDBCookieJar and the MSIE* classes are not | 10 Class diagram (note that BSDDBCookieJar and the MSIE* classes are not |
(...skipping 2058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2069 value = cookie.name | 2069 value = cookie.name |
2070 else: | 2070 else: |
2071 name = cookie.name | 2071 name = cookie.name |
2072 value = cookie.value | 2072 value = cookie.value |
2073 f.write( | 2073 f.write( |
2074 "\t".join([cookie.domain, initial_dot, cookie.path, | 2074 "\t".join([cookie.domain, initial_dot, cookie.path, |
2075 secure, expires, name, value])+ | 2075 secure, expires, name, value])+ |
2076 "\n") | 2076 "\n") |
2077 finally: | 2077 finally: |
2078 f.close() | 2078 f.close() |
LEFT | RIGHT |