← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1360879] [NEW] The with statement is always enabled in Python 2.6

 

Public bug reported:

According to the Python doc
(https://docs.python.org/2.6/reference/compound_stmts.html#with and
https://docs.python.org/2/library/__future__.html), the with statement
is always enabled in Python 2.6. So, it becomes useless to import it
from __future__. As a matter of fact, Horizon requires Python 2.6+
(https://wiki.openstack.org/wiki/Horizon#Requirements) and not Python
2.5 anymore.

** Affects: horizon
     Importance: Undecided
     Assignee: François Magimel (linkid)
         Status: In Progress

** Changed in: horizon
     Assignee: (unassigned) => François Magimel (linkid)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1360879

Title:
  The with statement is always enabled in Python 2.6

Status in OpenStack Dashboard (Horizon):
  In Progress

Bug description:
  According to the Python doc
  (https://docs.python.org/2.6/reference/compound_stmts.html#with and
  https://docs.python.org/2/library/__future__.html), the with statement
  is always enabled in Python 2.6. So, it becomes useless to import it
  from __future__. As a matter of fact, Horizon requires Python 2.6+
  (https://wiki.openstack.org/wiki/Horizon#Requirements) and not Python
  2.5 anymore.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1360879/+subscriptions


Follow ups

References