summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/sort_includes.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/sort_includes.py b/util/sort_includes.py
index 15d1f2788..41f57e2ea 100644
--- a/util/sort_includes.py
+++ b/util/sort_includes.py
@@ -72,7 +72,7 @@ class SortIncludes(object):
includes_re = tuple((a, b, re.compile(c)) for a,b,c in includes_re)
def __init__(self):
- self.reset()
+ pass
def reset(self):
# clear all stored headers
@@ -103,6 +103,7 @@ class SortIncludes(object):
prev = l
def __call__(self, lines, filename, language):
+ self.reset()
leading_blank = False
blanks = 0
block = False