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

Side by Side Diff: gclient.py

Issue 4360002: Largely reduce the number of pylint warnings and fix one typo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: address comments Created 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gcl.py ('k') | gclient_scm.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Meta checkout manager supporting both Subversion and GIT. 6 """Meta checkout manager supporting both Subversion and GIT.
7 7
8 Files 8 Files
9 .gclient : Current client configuration, written by 'config' command. 9 .gclient : Current client configuration, written by 'config' command.
10 Format is a Python script defining 'solutions', a list whose 10 Format is a Python script defining 'solutions', a list whose
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 __version__ = "0.6.1" 52 __version__ = "0.6.1"
53 53
54 import copy 54 import copy
55 import logging 55 import logging
56 import optparse 56 import optparse
57 import os 57 import os
58 import posixpath 58 import posixpath
59 import pprint 59 import pprint
60 import re 60 import re
61 import subprocess
62 import sys 61 import sys
63 import urlparse 62 import urlparse
64 import urllib 63 import urllib
65 64
66 import breakpad 65 import breakpad # pylint: disable=W0611
67 66
68 import gclient_scm 67 import gclient_scm
69 import gclient_utils 68 import gclient_utils
70 from third_party.repo.progress import Progress 69 from third_party.repo.progress import Progress
71 70
72 71
73 def attr(attr, data): 72 def attr(attribute, data):
74 """Sets an attribute on a function.""" 73 """Sets an attribute on a function."""
75 def hook(fn): 74 def hook(fn):
76 setattr(fn, attr, data) 75 setattr(fn, attribute, data)
77 return fn 76 return fn
78 return hook 77 return hook
79 78
80 79
81 ## GClient implementation. 80 ## GClient implementation.
82 81
83 82
84 class GClientKeywords(object): 83 class GClientKeywords(object):
85 class FromImpl(object): 84 class FromImpl(object):
86 """Used to implement the From() syntax.""" 85 """Used to implement the From() syntax."""
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 return CMDhelp(parser, argv) 1247 return CMDhelp(parser, argv)
1249 except gclient_utils.Error, e: 1248 except gclient_utils.Error, e:
1250 print >> sys.stderr, 'Error: %s' % str(e) 1249 print >> sys.stderr, 'Error: %s' % str(e)
1251 return 1 1250 return 1
1252 1251
1253 1252
1254 if '__main__' == __name__: 1253 if '__main__' == __name__:
1255 sys.exit(Main(sys.argv[1:])) 1254 sys.exit(Main(sys.argv[1:]))
1256 1255
1257 # vim: ts=2:sw=2:tw=80:et: 1256 # vim: ts=2:sw=2:tw=80:et:
OLDNEW
« no previous file with comments | « gcl.py ('k') | gclient_scm.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698