Skip to content

file constructor in doc/source/devel/register_me.py #1274

Closed
@DimitriPapadopoulos

Description

@DimitriPapadopoulos

Noticed this code, where file is neither a Python 3 built-in, nor imported:

dsource.write(file(ini_fname, 'wt'))

This looks like a Python 2 left-over:
https://python.readthedocs.io/en/v2.7.2/library/functions.html#file
https://portingguide.readthedocs.io/en/latest/builtins.html#removed-file

Has doc/source/devel/register_me.py ever been run recently? Is it still useful?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions