The with statement is always enabled in Python 2.6

Bug #1360879 reported by François Magimel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
François Magimel

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.

Changed in horizon:
assignee: nobody → François Magimel (linkid)
Changed in horizon:
status: New → In Progress
Revision history for this message
François Magimel (linkid) wrote :
Changed in horizon:
importance: Undecided → Wishlist
importance: Wishlist → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/116520
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=60c1477f772fdf7cb53a2f625a29b9033ed19ee1
Submitter: Jenkins
Branch: master

commit 60c1477f772fdf7cb53a2f625a29b9033ed19ee1
Author: François Magimel <email address hidden>
Date: Sun Aug 24 20:56:41 2014 +0200

    Importing with_statement from __future__ is useless

    Python 2.5 is not supported by Horizon and since Python 2.6, the
    with_statement is enabled by default.

    Change-Id: I0b5dc5d3c83c393b4f27ddc1bc1af392a498360c
    Closes-Bug: #1360879

Changed in horizon:
status: In Progress → Fix Committed
Akihiro Motoki (amotoki)
Changed in horizon:
milestone: none → juno-3
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: juno-3 → 2014.2
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.