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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/multiprocessing_bootstrap.py

Issue 2256793002: Make docstrings more consistent using format-webkitpy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make indentation of final quote based on parse tree (indentation prior to docstring node) rather th… Created 4 years, 3 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
OLDNEW
1 # Copyright (c) 2011 Google Inc. All rights reserved. 1 # Copyright (c) 2011 Google Inc. All rights reserved.
2 # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org) 2 # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org)
3 # 3 #
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 14 matching lines...) Expand all
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 29
30 """In order for the multiprocessing module to spawn children correctly on 30 """In order for the multiprocessing module to spawn children correctly on
31 Windows, we need to be running a Python module that can be imported 31 Windows, we need to be running a Python module that can be imported
32 (which means a file in sys.path that ends in .py). In addition, we need to 32 (which means a file in sys.path that ends in .py). In addition, we need to
33 ensure that sys.path / PYTHONPATH is set and propagating correctly. 33 ensure that sys.path / PYTHONPATH is set and propagating correctly.
34 34
35 This module enforces that.""" 35 This module enforces that.
36 """
36 37
37 import os 38 import os
38 import subprocess 39 import subprocess
39 import sys 40 import sys
40 41
41 from webkitpy.common import version_check # 'unused import' pylint: disable=W0 611 42 from webkitpy.common import version_check # 'unused import' pylint: disable=W0 611
42 43
43 44
44 def run(*parts): 45 def run(*parts):
45 up = os.path.dirname 46 up = os.path.dirname
(...skipping 20 matching lines...) Expand all
66 67
67 try: 68 try:
68 # Temporary logging to try and diagnose hangs on the Windows bots. 69 # Temporary logging to try and diagnose hangs on the Windows bots.
69 if 'win_chromium_rel_ng' in sys.argv: 70 if 'win_chromium_rel_ng' in sys.argv:
70 print "sys.exit starting" 71 print "sys.exit starting"
71 sys.exit(proc.returncode) 72 sys.exit(proc.returncode)
72 finally: 73 finally:
73 # Temporary logging to try and diagnose hangs on the Windows bots. 74 # Temporary logging to try and diagnose hangs on the Windows bots.
74 if 'win_chromium_rel_ng' in sys.argv: 75 if 'win_chromium_rel_ng' in sys.argv:
75 print "sys.exit completed" 76 print "sys.exit completed"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698