use of with statement breaks Python 2.4 compatibility
Bug #1072533 reported by
David Carr
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Dulwich |
Fix Released
|
High
|
Unassigned |
Bug Description
According to the python reference [1], the with statement was introduced in Python 2.5. According to the Dulwich main page [2], Dulwich is intended to be tested with (and presumably, support) CPython 2.X where X >= 4.
The line in question is in dulwich/repo.py:
with open(os.
I've attached an attempt at a patch.
[1]: http://
[2]: http://
Changed in dulwich: | |
milestone: | none → 0.9.0 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Merged, thanks!