Upload policies are instantiated unnecessarily

Bug #510892 reported by Jonathan Lange
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
Guilherme Salgado

Bug Description

The upload policy code in lib/lp/archiveuploader/uploadpolicy.py instantiates policies once to get their name and again to actually yield them. If the policy name were a class variable, then they would only need to instantiate them in the latter case.

Related branches

Jonathan Lange (jml)
tags: added: wellington
Jonathan Lange (jml)
Changed in soyuz:
assignee: Jonathan Lange (jml) → nobody
Changed in soyuz:
assignee: nobody → Guilherme Salgado (salgado)
Changed in soyuz:
status: Triaged → In Progress
Changed in soyuz:
status: In Progress → Fix Committed
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
tags: added: qa-needstesting
tags: added: qa-untestable
removed: qa-needstesting
Ursula Junque (ursinha)
Changed in soyuz:
milestone: none → 10.09
Curtis Hovey (sinzui)
Changed in soyuz:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.