Title: [150461] trunk/Tools
Revision
150461
Author
[email protected]
Date
2013-05-21 11:59:38 -0700 (Tue, 21 May 2013)

Log Message

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):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (150460 => 150461)


--- trunk/Tools/ChangeLog	2013-05-21 18:49:40 UTC (rev 150460)
+++ trunk/Tools/ChangeLog	2013-05-21 18:59:38 UTC (rev 150461)
@@ -1,3 +1,10 @@
+2013-05-21  Ryosuke Niwa  <[email protected]>
+
+        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  <[email protected]>
 
         [GTK] [CMake] Add support for building WebKit2

Modified: trunk/Tools/Scripts/webkitpy/tool/commands/suggestnominations.py (150460 => 150461)


--- trunk/Tools/Scripts/webkitpy/tool/commands/suggestnominations.py	2013-05-21 18:49:40 UTC (rev 150460)
+++ trunk/Tools/Scripts/webkitpy/tool/commands/suggestnominations.py	2013-05-21 18:59:38 UTC (rev 150461)
@@ -71,7 +71,7 @@
     # 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)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to