__init__(self,
contents,
linedelimiter,
blockdelimiters,
start,
end)
(Constructor)
| source code
|
Builds a new instance of a CommentHeader .
- Parameters:
contents - a list of strings, where each component is a single line of the
comment header.
linedelimiter - a string with the delimiter that was used for the commentblock if
it was a line comment, otherwise None .
blockdelimiters - a tuple of two strings with the opening and closing delimiters if
the comment header was block-formatted, otherwise
None
start - the line number in the file where the comment header started.
end - the line number in the file where the comment header stopped.
|