Show More
@@ -170,6 +170,14 b' class patchheader(object):' | |||
|
170 | 170 | break |
|
171 | 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 | 181 | def __str__(self): |
|
174 | 182 | if not self.comments: |
|
175 | 183 | return '' |
General Comments 0
You need to be logged in to leave comments.
Login now