Avoid using 'ppa' local variable since it overshadows the imported ppa package

Bug #1993741 reported by Bryce Harrington
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ppa-dev-tools
Fix Released
Low
Bryce Harrington

Bug Description

In the ppa script, we lookup a Ppa class instance and place it into an object named 'ppa', however all the modules that the script uses are in the ppa module namespace. This can at least create confusion, and may potentially cause some code errors or ambiguity.

I'm not sure what a better variable name should be. In command_create(), 'new_ppa' seems obvious, but that's only work there.

Related branches

Revision history for this message
Bryce Harrington (bryce) wrote :

I've implemented a fix to this, by renaming the 'ppa' variables to 'the_ppa'.

Changed in ppa-dev-tools:
status: New → In Progress
assignee: nobody → Bryce Harrington (bryce)
importance: Undecided → Low
Revision history for this message
Bryce Harrington (bryce) wrote :
Bryce Harrington (bryce)
Changed in ppa-dev-tools:
status: In Progress → Fix Committed
Revision history for this message
Bryce Harrington (bryce) wrote :

Fixed with the 0.4.0 release

Changed in ppa-dev-tools:
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.