~xnox/ubuntu-archive-tools/sru-report-autopkgtest-vomit

« back to all changes in this revision

Viewing changes to isotracker.py

  • Committer: Colin Watson
  • Date: 2012-12-13 14:50:11 UTC
  • Revision ID: cjwatson@canonical.com-20121213145011-8xvn3h432hz4197x
make all scripts pass current stricter pep8(1) in raring

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
                    password = self.config.get(self.target, 'password')
70
70
            else:
71
71
                print("Couldn't find a '%s' target, using the default." %
72
 
                        self.target)
 
72
                      self.target)
73
73
 
74
74
        qatracker = QATracker(url, username, password)
75
75
 
88
88
            # Series-specific default milestone
89
89
            try:
90
90
                milestone_name = self.config.get(self.target,
91
 
                                                    'default_milestone')
 
91
                                                 'default_milestone')
92
92
            except (KeyError, configparser.NoSectionError,
93
93
                    configparser.NoOptionError):
94
94
                pass
97
97
            # Generic default milestone
98
98
            try:
99
99
                milestone_name = self.config.get('general',
100
 
                                                    'default_milestone')
 
100
                                                 'default_milestone')
101
101
            except (KeyError, configparser.NoSectionError,
102
102
                    configparser.NoOptionError):
103
103
                pass
130
130
            raise KeyError("Milestone '%s' not found" % milestone)
131
131
 
132
132
    def get_builds(self, milestone=None,
133
 
                    status=['Active', 'Re-building', 'Ready']):
 
133
                   status=['Active', 'Re-building', 'Ready']):
134
134
        """
135
135
            Get a list of QATrackerBuild for the given milestone and status.
136
136
        """
143
143
        return milestone.get_builds(status)
144
144
 
145
145
    def post_build(self, product, version, milestone=None, note="",
146
 
                    notify=True):
 
146
                   notify=True):
147
147
        """
148
148
            Post a new build to the given milestone.
149
149
        """