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
0c14cfa8
Commit
0c14cfa8
authored
Mar 06, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update documentation to reflect the shift to NetrcParseError instead of
SyntaxError.
parent
ae2d615b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
Doc/lib/libnetrc.tex
Doc/lib/libnetrc.tex
+10
-2
No files found.
Doc/lib/libnetrc.tex
View file @
0c14cfa8
...
...
@@ -18,10 +18,18 @@ A \class{netrc} instance or subclass instance encapsulates data from
a netrc file. The initialization argument, if present, specifies the
file to parse. If no argument is given, the file
\file
{
.netrc
}
in the
user's home directory will be read. Parse errors will raise
\exception
{
SyntaxError
}
with diagnostic information including the file
name, line number, and terminating token.
\exception
{
NetrcParseError
}
with diagnostic information including the
file
name, line number, and terminating token.
\end{classdesc}
\begin{excdesc}
{
NetrcParseError
}
Exception raised by the
\class
{
netrc
}
class when syntactical errors
are encountered in source text. Instances of this exception provide
three interesting attributes:
\member
{
msg
}
is a textual explanation
of the error,
\member
{
filename
}
is the name of the source file, and
\member
{
lineno
}
gives the line number on which the error was found.
\end{excdesc}
\subsection
{
netrc Objects
\label
{
netrc-objects
}}
...
...
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