Ticket #5785 task closed fixed
Replace usage of file with open in twisted.python.versions
| Reported by: | thijs | Owned by: | thijs |
|---|---|---|---|
| Priority: | normal | Milestone: | Python 3.3 Minimal |
| Component: | core | Keywords: | |
| Cc: | thijs | Branch: | branches/versions-file-5785 |
| Author: | itamarst | Launchpad Bug: |
Description
twisted.python.versions contains 2 file calls that are deprecated in Python 3, and should be replaced with open instead.
twisted/python/versions.py:212: format = file(formatFile).read().strip() twisted/python/versions.py:223: entries = file(entriesFile)
Attached patch replaces these calls and also brings code coverage from 92 to 98%.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

