~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/browser/bugtarget.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-22 04:08:17 UTC
  • mfrom: (14564.2.1 megalint-8)
  • Revision ID: launchpad@pqm.canonical.com-20111222040817-zx0jfft9hedsc8he
[r=jtv][no-qa] Lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1220
1220
        elif IProduct(self.context, None):
1221
1221
            milestone_resultset = self.context.milestones
1222
1222
        else:
1223
 
            raise AssertionError("milestones_list called with illegal context")
 
1223
            raise AssertionError(
 
1224
                "milestones_list called with illegal context")
1224
1225
        return list(milestone_resultset)
1225
1226
 
1226
1227
    @property
1320
1321
        official_tags = self.context.official_bug_tags
1321
1322
        tags = self.context.getUsedBugTagsWithOpenCounts(
1322
1323
            self.user, 10, official_tags)
1323
 
        max_count = float(max([1] + tags.values()))
1324
1324
 
1325
1325
        return sorted(
1326
1326
            [dict(