~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/scripts/bzremotecomponentfinder.py

  • Committer: Curtis Hovey
  • Date: 2011-06-02 22:20:27 UTC
  • mto: This revision was merged to the branch mainline in revision 13177.
  • Revision ID: curtis.hovey@canonical.com-20110602222027-dg1u6i2p40la52qe
Hush lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
    def __init__(self, base_url=None):
49
49
        self.base_url = re.sub(r'/$', '', base_url)
50
 
        self.url = "%s/query.cgi?format=advanced" %(self.base_url)
 
50
        self.url = "%s/query.cgi?format=advanced" % (self.base_url)
51
51
        self.products = {}
52
52
 
53
53
    def getPage(self):
132
132
            if lp_bugtracker.name in self._BLACKLIST:
133
133
                continue
134
134
 
135
 
            self.logger.info("%s: %s" %(
 
135
            self.logger.info("%s: %s" % (
136
136
                lp_bugtracker.name, lp_bugtracker.baseurl))
137
137
            bz_bugtracker = BugzillaRemoteComponentScraper(
138
 
                base_url = lp_bugtracker.baseurl)
 
138
                base_url=lp_bugtracker.baseurl)
139
139
 
140
140
            if self.static_bugzilla_text is not None:
141
141
                self.logger.debug("Using static bugzilla text")
187
187
            # added to launchpad.  Record them for now.
188
188
            for component in product['components'].values():
189
189
                components_to_add.append(
190
 
                    "('%s', %d, 'True', 'False')" %(
 
190
                    "('%s', %d, 'True', 'False')" % (
191
191
                        component['name'], lp_component_group.id))
192
192
 
193
 
        if len(components_to_add)>0:
 
193
        if len(components_to_add) > 0:
194
194
            sqltext = """
195
195
            INSERT INTO BugTrackerComponent
196
196
            (name, component_group, is_visible, is_custom)