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

Side by Side Diff: scripts/slave/chromium_commands.py

Issue 12388023: Disable false-positive pylint warning. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # 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
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """A subclass of commands.SVN that allows more flexible error recovery. 5 """A subclass of commands.SVN that allows more flexible error recovery.
6 6
7 This code is only used on the slave but it is living in common/ because it is 7 This code is only used on the slave but it is living in common/ because it is
8 directly imported from buildbot/slave/bot.py.""" 8 directly imported from buildbot/slave/bot.py."""
9 9
10 import os 10 import os
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 def maybeDoVCRetry(self, res): 641 def maybeDoVCRetry(self, res):
642 """Called after doVCFull.""" 642 """Called after doVCFull."""
643 if type(res) is int and res == 2: 643 if type(res) is int and res == 2:
644 # Non-VC failure, return 2 to turn the step red. 644 # Non-VC failure, return 2 to turn the step red.
645 return res 645 return res
646 646
647 # super 647 # super
648 return sourcebase.maybeDoVCRetry(self, res) 648 return sourcebase.maybeDoVCRetry(self, res)
649 649
650 650
651 class ApplyIssue(commandbase): 651 class ApplyIssue(commandbase): # disable=W0654
652 """Command to run apple_issue.py on the checkbout.""" 652 """Command to run apple_issue.py on the checkbout."""
653 653
654 def __init__(self, *args, **kwargs): 654 def __init__(self, *args, **kwargs):
655 log.msg('ApplyIssue.__init__') 655 log.msg('ApplyIssue.__init__')
656 self.root = None 656 self.root = None
657 self.issue = None 657 self.issue = None
658 self.patchset = None 658 self.patchset = None
659 self.email = None 659 self.email = None
660 self.password = None 660 self.password = None
661 self.workdir = None 661 self.workdir = None
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 720
721 # We run this code in a try because it fails with an assertion if 721 # We run this code in a try because it fails with an assertion if
722 # the module is loaded twice. 722 # the module is loaded twice.
723 registerSlaveCommand('gclient', GClient, commands.command_version) 723 registerSlaveCommand('gclient', GClient, commands.command_version)
724 registerSlaveCommand('apply_issue', ApplyIssue, commands.command_version) 724 registerSlaveCommand('apply_issue', ApplyIssue, commands.command_version)
725 except (AssertionError, NameError): 725 except (AssertionError, NameError):
726 pass 726 pass
727 727
728 728
729 RegisterCommands() 729 RegisterCommands()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698