move imports to top of the file

Bug #656219 reported by Daniel Holbach
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
harvest
Fix Released
Low
Unassigned

Bug Description

<spike> all imports should go at the top of the file, not inside functions. golden rule is fail fast. if your app depends on some libs that are not installed it should tell the user right away, not do work and possibly fail later mid way some job

Tags: bitesize

Related branches

Changed in harvest:
importance: Undecided → Medium
status: New → Triaged
Changed in harvest:
milestone: none → 0.2.2
Changed in harvest:
importance: Medium → Low
milestone: 0.2.2 → none
Revision history for this message
Arvind S Raj (arvindsraj-deactivatedaccount) wrote :

Perhaps the order of the imports could arranged so that it conforms to PEP-8?

Changed in harvest:
assignee: nobody → Arvind S Raj (arvindsraj)
Changed in harvest:
status: Triaged → In Progress
Changed in harvest:
milestone: none → 0.2.5
status: In Progress → Fix Committed
Changed in harvest:
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.