Fix a compatibility issue with Perforce on Python 2.4.
Review Request #2498 — Created July 28, 2011 and submitted
Fix a compatibility issue with Perforce on Python 2.4. The finally: keyword isn't supported in Python 2.4. Rework an exception to not need it.
Unit tests pass.
Loading file attachments...
This now won't call _disconnect() in the case of an exception other than P4Exception. This should probably also catch Exception, ...
One final change: can you add a comment that this should ideally be using "with"?