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

Side by Side Diff: native_client_sdk/src/build_tools/manifest_util.py

Issue 10139026: Set svn:executable bit on scripts that are executable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update Created 8 years, 8 months 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/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 import json 5 import json
7 6
8 MANIFEST_VERSION = 2 7 MANIFEST_VERSION = 2
9 8
10 # Some commonly-used key names. 9 # Some commonly-used key names.
11 ARCHIVES_KEY = 'archives' 10 ARCHIVES_KEY = 'archives'
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 self._manifest_data[key] = value 343 self._manifest_data[key] = value
345 self.Validate() 344 self.Validate()
346 345
347 def GetManifestString(self): 346 def GetManifestString(self):
348 """Returns the current JSON manifest object, pretty-printed""" 347 """Returns the current JSON manifest object, pretty-printed"""
349 pretty_string = json.dumps(self._manifest_data, sort_keys=False, indent=2) 348 pretty_string = json.dumps(self._manifest_data, sort_keys=False, indent=2)
350 # json.dumps sometimes returns trailing whitespace and does not put 349 # json.dumps sometimes returns trailing whitespace and does not put
351 # a newline at the end. This code fixes these problems. 350 # a newline at the end. This code fixes these problems.
352 pretty_lines = pretty_string.split('\n') 351 pretty_lines = pretty_string.split('\n')
353 return '\n'.join([line.rstrip() for line in pretty_lines]) + '\n' 352 return '\n'.join([line.rstrip() for line in pretty_lines]) + '\n'
OLDNEW
« no previous file with comments | « native_client_sdk/src/build_tools/install_third_party.py ('k') | native_client_sdk/src/build_tools/nacl-mono-archive.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698