Ticket #5808 enhancement closed wontfix

Opened 10 months ago

Last modified 6 months ago

replace usage of file with FilePath in twisted.cred.checkers

Reported by: thijs Owned by:
Priority: low Milestone: Python-3.x
Component: core Keywords:
Cc: thijs, bitsink@… Branch: branches/checkers-filepath-5808
Author: thijs Launchpad Bug:

Description (last modified by thijs) (diff)

The usage of file should be replaced with FilePath in twisted.cred.checkers and it's tests for Python 3 compatibility.

twisted/cred/checkers.py:196:            f = file(self.filename)
twisted/test/test_newcred.py:184:        f = file(dbfile, 'w')
twisted/test/test_newcred.py:196:        f = file(dbfile, 'w')
twisted/test/test_newcred.py:207:        f = file(dbfile, 'w')
twisted/test/test_newcred.py:220:        f = file(dbfile, 'w')
twisted/test/test_newcred.py:246:        f = file(dbfile, 'w')
twisted/test/test_newcred.py:408:            fObj = file(fn, 'w')
twisted/test/test_newcred.py:415:            fObj = file(fn, 'w')
twisted/test/test_newcred.py:422:            fObj = file(fn, 'w')

Attachments

cred-open-5808.patch Download (7.9 KB) - added by thijs 10 months ago.
cred-open-5808-2.patch Download (11.3 KB) - added by thijs 10 months ago.

Change History

Changed 10 months ago by thijs

1

  Changed 10 months ago by thijs

  • keywords review added
  • cc thijs added

Attached patch replaces file with with open(...) as f and also applies some coding standards.

2

  Changed 10 months ago by thijs

  • description modified (diff)
  • summary changed from replace usage of file with open in twisted.cred.checkers to replace usage of file with FilePath in twisted.cred.checkers

Changed 10 months ago by thijs

3

follow-up: ↓ 4   Changed 8 months ago by namn

  • cc bitsink@… added

setUp and test_userLookup in OnDiskDatabaseTestCase.py should be separated by two blank lines.

setUp is defined in two places, one at line 247, one at 184. The later definition does not assign dbfile to self.

4

in reply to: ↑ 3   Changed 8 months ago by thijs

  • keywords review removed
  • owner set to thijs
  • status changed from new to assigned

Replying to namn:

setUp and test_userLookup in OnDiskDatabaseTestCase.py should be separated by two blank lines. setUp is defined in two places, one at line 247, one at 184. The later definition does not assign dbfile to self.

Thanks for the review. Make sure to remove the 'review' keyword when you've done a review, as described on ReviewProcess.

5

  Changed 8 months ago by thijs

  • branch set to branches/checkers-filepath-5808
  • branch_author set to thijs

(In [35910]) Branching to 'checkers-filepath-5808'

6

  Changed 8 months ago by thijs

(In [35911]) apply cred-open-5808-2.patch, refs #5808

7

  Changed 8 months ago by thijs

(In [35919]) address review comments, add news file. refs #5808

8

  Changed 8 months ago by thijs

  • owner thijs deleted
  • status changed from assigned to new
  • keywords review added

9

  Changed 6 months ago by therve

  • keywords review removed
  • status changed from new to closed
  • resolution set to wontfix

Following Plan/Python3 I'm closing this ticket. Sorry for the inconvenience.

Note: See TracTickets for help on using tickets.