Skip to content

DeprecationWarning: 'U' mode is deprecated #115

@montefra

Description

@montefra

From python 3.4 on, the 'U' mode of open has been deprecated.
According to this answer the 'U' has been replaced by the newline argument, that when set to None, the default, uses universal new line.
I have identified only three rU modes. Two in the readline function and one regarding svn.

  • If it's fine with you, for the first two cases I'll do a PR where I set the mode to rU for python 2 and r otherwise.
  • I don't think that I need to touch the svn case, as the mode is never used

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