瀏覽代碼

Don't list the "wc -l" commands.

Heikki Hokkanen 18 年之前
父節點
當前提交
76d1dc7a8b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      gitstats

+ 1
- 1
gitstats 查看文件

@@ -250,7 +250,7 @@ class GitDataCollector(DataCollector):
250 250
 			self.extensions[ext]['files'] += 1
251 251
 			try:
252 252
 				# Escaping could probably be improved here
253
-				self.extensions[ext]['lines'] += int(getoutput('wc -l < %s' % re.sub(r'(\W)', r'\\\1', line)))
253
+				self.extensions[ext]['lines'] += int(getoutput('wc -l < %s' % re.sub(r'(\W)', r'\\\1', line), quiet = True))
254 254
 			except:
255 255
 				print 'Warning: Could not count lines for file "%s"' % line
256 256