#20252: Allow sage-uncompress-spkg to work with Python 2.6
-------------------------------------+-------------------------------------
Reporter: jhpalmieri | Owner:
Type: defect | Status: needs_review
Priority: critical | Milestone: sage-7.2
Component: build | Resolution:
Keywords: | Merged in:
Authors: John Palmieri | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jhpalmieri/python2.6tarfile | ff5197d496c016b679974e8d1a2508a4c15bc63a
Dependencies: #20242 | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by jhpalmieri):
I reproduced the bug with Python 2.6, and this change fixed it for me.
`with` is already there in earlier versions, but the use of `with` with
`TarFile` objects was added in Python 2.7. According to the
[https://docs.python.org/2/library/tarfile.html docs for the `tarfile`
module]: "New in version 2.7: Added support for the context management
protocol." The same goes for the `zipfile` module.
--
Ticket URL: <http://trac.sagemath.org/ticket/20252#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.