Show More
@@ -170,6 +170,14 b' class patchheader(object):' | |||||
170 | break |
|
170 | break | |
171 | return res |
|
171 | return res | |
172 |
|
172 | |||
|
173 | def _hasheader(self, prefixes): | |||
|
174 | '''Check if a header starts with any of the given prefixes.''' | |||
|
175 | for prefix in prefixes: | |||
|
176 | for comment in self.comments: | |||
|
177 | if comment.startswith(prefix): | |||
|
178 | return True | |||
|
179 | return False | |||
|
180 | ||||
173 | def __str__(self): |
|
181 | def __str__(self): | |
174 | if not self.comments: |
|
182 | if not self.comments: | |
175 | return '' |
|
183 | return '' |
General Comments 0
You need to be logged in to leave comments.
Login now