[tor-commits] [gettor/master] Fix minor parsing bug in MakeStat.py
kaner at torproject.org
kaner at torproject.org
Tue Jul 3 19:05:34 UTC 2012
commit d5ec695b4bfcf8b87532fe78a3975bda0dc41453
Author: Christian Fromme <kaner at strace.org>
Date: Tue Jul 3 21:05:05 2012 +0200
Fix minor parsing bug in MakeStat.py
---
MakeStat.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/MakeStat.py b/MakeStat.py
index a34d59b..90e5da2 100644
--- a/MakeStat.py
+++ b/MakeStat.py
@@ -26,7 +26,7 @@ def makestats(filename, configPackages):
for line in readData:
# This is how we recognize a relevant line: Starts with a date like
# 2011-10-04 and has a "{" with matching "}" somewhere.
- matchStr = "^([0-9]{4}-[0-9]{2}-[0-9]{2}).*({.*}).*"
+ matchStr = "^([0-9]{4}-[0-9]{2}-[0-9]{2}).*({'.*}).*"
match = re.match(matchStr, line, re.DOTALL)
if match:
dateInfo = match.group(1)
More information about the tor-commits
mailing list