Ticket #5809 enhancement closed wontfix
replace usage of file with FilePath in twisted.mail
| Reported by: | thijs | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | Python-3.x |
| Component: | Keywords: | easy | |
| Cc: | thijs, moijes12@… | Branch: | branches/mail-filepath-5809 |
| Author: | thijs | Launchpad Bug: |
Description (last modified by thijs) (diff)
The usage of file should be replaced with FilePath in twisted.mail and it's tests for Python 3 compatibility.
twisted/mail/test/test_options.py:31: aliasFile = file(self.aliasFilename, 'w')
twisted/mail/test/test_mail.py:169: self.f = file(self.name, 'w')
twisted/mail/test/test_mail.py:540: fObj = file(j(self.d, f), 'w')
twisted/mail/test/test_mail.py:856: f = file(name + '-H', 'w')
twisted/mail/test/test_mail.py:860: f = file(name + '-D', 'w')
twisted/mail/test/test_mail.py:1693: lines = file(tmpfile).readlines()
twisted/mail/test/test_mail.py:1845: lines = file('process.alias.out').readlines()
twisted/mail/test/test_imap.py:1563: message = file(infile)
twisted/mail/alias.py:70: fp = file(filename)
twisted/mail/alias.py:155: f = file(self.finalname, 'a')
twisted/mail/alias.py:403: f = file(addr[1:])
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

