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

Unified Diff: chrome/test/data/autofill/merge/tools/flatten.py

Issue 8680018: Fix python scripts in src/chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/autofill/merge/tools/flatten.py
diff --git a/chrome/test/data/autofill/merge/tools/flatten.py b/chrome/test/data/autofill/merge/tools/flatten.py
old mode 100644
new mode 100755
index 5b3c3def52564a94bf6ac1fb6fafc63d19b8096f..720329f115283519ea7acb0289700ee39998e104
--- a/chrome/test/data/autofill/merge/tools/flatten.py
+++ b/chrome/test/data/autofill/merge/tools/flatten.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -6,7 +7,6 @@ import sys
def main():
"""Converts a vertical serialization into a compact, horizontal serialization.
-
"""
COLUMNS = ['First name', 'Middle name', 'Last name', 'Email', 'Company name',
@@ -59,7 +59,8 @@ def main():
profile_format = zip(column_formats, profile)
profile = [format_.format(value) for (format_, value) in profile_format]
print " | ".join(profile)
+ return 0
if __name__ == '__main__':
- main()
+ sys.exit(main())

Powered by Google App Engine
This is Rietveld 408576698