Edgewall Software

Opened 10 years ago

Closed 10 years ago

#11787 closed enhancement (fixed)

Replace uses of "file" with "open" — at Version 2

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.0.3
Component: general Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:

Replaced uses of file() with open(). The latter is the recommended function in Python 2 and is also compatible with Python 3.

API Changes:
Internal Changes:

Description

Python 3 does not have a built-in file() function, and even Python 2 recommends using open() rather than file(). It should be simple to replace uses of file() with open().

Change History (2)

comment:1 by Ryan J Ollos, 10 years ago

Proposed changes in log:rjollos.git:t11787.

comment:2 by Ryan J Ollos, 10 years ago

Release Notes: modified (diff)
Resolution: fixed
Status: newclosed

Committed to 1.0-stable in [13166], merged to trunk in [13167].

Note: See TracTickets for help on using tickets.