Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
36cbdf95
Commit
36cbdf95
authored
Jan 03, 2006
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated doc from patch 1117398
parent
1a196b5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
Doc/lib/libcookielib.tex
Doc/lib/libcookielib.tex
+10
-5
No files found.
Doc/lib/libcookielib.tex
View file @
36cbdf95
...
...
@@ -36,7 +36,9 @@ The module defines the following exception:
\begin{excdesc}
{
LoadError
}
Instances of
\class
{
FileCookieJar
}
raise this exception on failure to
load cookies from a file.
load cookies from a file.
\note
{
For backwards-compatibility
with Python 2.4 (which raised an
\exception
{
IOError
}
),
\exception
{
LoadError
}
is a subclass of
\exception
{
IOError
}}
.
\end{excdesc}
...
...
@@ -273,16 +275,19 @@ Old cookies are kept unless overwritten by newly loaded ones.
Arguments are as for
\method
{
save()
}
.
The named file must be in the format understood by the class, or
\exception
{
LoadError
}
will be raised.
\exception
{
LoadError
}
will be raised. Also,
\exception
{
IOError
}
may
be raised, for example if the file does not exist.
\note
{
For
backwards-compatibility with Python 2.4 (which raised
an
\exception
{
IOError
}
),
\exception
{
LoadError
}
is a subclass
of
\exception
{
IOError
}
.
}
\end{methoddesc}
\begin{methoddesc}
[FileCookieJar]
{
revert
}{
filename=
\constant
{
None
}
,
ignore
_
discard=
\constant
{
False
}
, ignore
_
expires=
\constant
{
False
}}
Clear all cookies and reload cookies from a saved file.
Raises
\exception
{
cookielib.LoadError
}
or
\exception
{
IOError
}
if
reversion is not successful; the object's state will not be altered if
this happens.
\method
{
revert()
}
can raise the same exceptions as
\method
{
load()
}
.
If there is a failure, the object's state will not be altered.
\end{methoddesc}
\class
{
FileCookieJar
}
instances have the following public attributes:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment