Minor cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@152038 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/misc/grep-svn-log.py b/utils/misc/grep-svn-log.py
index a29df3f..ebbfe33 100755
--- a/utils/misc/grep-svn-log.py
+++ b/utils/misc/grep-svn-log.py
@@ -59,6 +59,7 @@
# At this state, we keep on accumulating lines until the separator
# is encountered. At which point, we can return the log content.
if line == separator:
+ log.finish()
print log.getvalue()
return
log.add_line(line)
@@ -78,6 +79,7 @@
regexp = re.compile(sys.argv[1])
grep(regexp)
+ sys.stdin.close()
if __name__ == '__main__':
main()