Fix a python unittest after r149419. We need to support Python 2.6 on Windows.
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 May 2013 18:59:38 +0000 (18:59 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 May 2013 18:59:38 +0000 (18:59 +0000)
* Scripts/webkitpy/tool/commands/suggestnominations.py:
(AbstractCommitLogCommand._recent_commit_messages):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@150461 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/Scripts/webkitpy/tool/commands/suggestnominations.py

index 47fae1e..324e169 100644 (file)
@@ -1,3 +1,10 @@
+2013-05-21  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Fix a python unittest after r149419. We need to support Python 2.6 on Windows.
+
+        * Scripts/webkitpy/tool/commands/suggestnominations.py:
+        (AbstractCommitLogCommand._recent_commit_messages):
+
 2013-05-21  Martin Robinson  <mrobinson@igalia.com>
 
         [GTK] [CMake] Add support for building WebKit2
index 3ae3366..6244c29 100644 (file)
@@ -71,7 +71,7 @@ class AbstractCommitLogCommand(Command):
     # FIXME: This should move to scm.py
     def _recent_commit_messages(self):
         git_log = self._tool.executive.run_command(['git', 'log', '--date=iso', '--since="%s months ago"' % self.max_commit_age])
-        messages = re.split(r"^commit \w{40}$", git_log, flags=re.MULTILINE)[1:]  # Ignore the first message which will be empty.
+        messages = re.compile(r"^commit \w{40}$", re.MULTILINE).split(git_log)[1:]  # Ignore the first message which will be empty.
         for message in messages:
             # Unindent all the lines
             (message, _) = self._leading_indent_regexp.subn("", message)