Lines Matching refs:self

47     def __init__(self, filename, line_number, message, *args, **kwargs):  argument
53 def __init__(self, line_offset, error_message): argument
54 self.line_offset = line_offset
55 self.error_message = error_message
59 def __init__(self, filename, line): argument
207 def add_categories_from_text(self, filename, line_offset, argument
211 categories = self.format.split_categories(text)
217 category.name not in self.categories:
226 if not self._only_url_re.match(line) and \
229 if self._has_url_re.match(line) else ""
237 self.categories[category.name] += category.body
239 def __init__(self, input_stream, changelog_format): argument
245 self.format = changelog_format
247 (self.header,
248 self.top_version_title, top_version_body,
249 self.trailer) = self.format.extract_top_version(whole_file)
251 self.categories = OrderedDict()
253 self.categories[category] = ''
254 offset = (self.header + self.top_version_title).count('\n') + 1
255 self.add_categories_from_text(input_stream.name, offset,
258 def add_file(self, input_stream): argument
261 self.add_categories_from_text(input_stream.name, 1,
264 def write(self, filename): argument
268 out.write(self.header)
269 out.write(self.top_version_title)
270 for title, body in self.categories.items():
273 out.write(self.format.format_category(title, body))
274 out.write(self.trailer)
365 def __init__(self, filename): argument
372 self.filename = filename
373 creation_hash = self.creation_hash(filename)
375 self.category = self.LOCAL
376 self.datetime = self.file_timestamp(filename)
378 merge_hash = self.merge_hash(creation_hash)
380 self.category = self.COMMITTED
381 self.datetime = self.commit_timestamp(creation_hash)
383 self.category = self.MERGED
384 self.datetime = self.commit_timestamp(merge_hash)
386 def sort_key(self): argument
391 return (self.category, self.datetime, self.filename)
393 def __eq__(self, other): argument
394 return self.sort_key() == other.sort_key()
396 def __lt__(self, other): argument
397 return self.sort_key() < other.sort_key()