Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(824)

Side by Side Diff: media/tools/layout_tests/test_expectations_history.py

Issue 8672007: Fix python scripts in src/media (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 3 # found in the LICENSE file.
5 4
6 """A module for the history of the test expectation file.""" 5 """A module for the history of the test expectation file."""
7 6
8 import re 7 import re
9 import sys 8 import sys
10 import time 9 import time
11 import pysvn 10 import pysvn
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 if line[0] == '+' or line[0] == '-': 98 if line[0] == '+' or line[0] == '-':
100 target_lines.append(line) 99 target_lines.append(line)
101 if target_lines: 100 if target_lines:
102 # Needs to convert to normal date string for presentation. 101 # Needs to convert to normal date string for presentation.
103 result_list.append(( 102 result_list.append((
104 old_rev, new_rev, logs[i + 1].author, 103 old_rev, new_rev, logs[i + 1].author,
105 datetime.fromtimestamp( 104 datetime.fromtimestamp(
106 logs[i + 1].date).strftime('%Y-%m-%d %H:%M:%S'), 105 logs[i + 1].date).strftime('%Y-%m-%d %H:%M:%S'),
107 logs[i + 1].message, target_lines)) 106 logs[i + 1].message, target_lines))
108 return result_list 107 return result_list
OLDNEW
« no previous file with comments | « media/tools/layout_tests/test_expectations.py ('k') | media/tools/layout_tests/test_expectations_history_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698