Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow universal line endings in filecmp module #55136

Closed
gjb1002 mannequin opened this issue Jan 17, 2011 · 2 comments
Closed

Allow universal line endings in filecmp module #55136

gjb1002 mannequin opened this issue Jan 17, 2011 · 2 comments
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@gjb1002
Copy link
Mannequin

gjb1002 mannequin commented Jan 17, 2011

BPO 10927
Nosy @bitdancer
Superseder
  • bpo-6306: filecmp.cmp can not compare two files from different OS with the same content
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2011-01-17.18:17:09.749>
    created_at = <Date 2011-01-17.15:44:02.143>
    labels = ['type-feature', 'library']
    title = 'Allow universal line endings in filecmp module'
    updated_at = <Date 2011-01-17.18:17:09.747>
    user = 'https://bugs.python.org/gjb1002'

    bugs.python.org fields:

    activity = <Date 2011-01-17.18:17:09.747>
    actor = 'r.david.murray'
    assignee = 'none'
    closed = True
    closed_date = <Date 2011-01-17.18:17:09.749>
    closer = 'r.david.murray'
    components = ['Library (Lib)']
    creation = <Date 2011-01-17.15:44:02.143>
    creator = 'gjb1002'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 10927
    keywords = []
    message_count = 2.0
    messages = ['126405', '126424']
    nosy_count = 2.0
    nosy_names = ['gjb1002', 'r.david.murray']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '6306'
    type = 'enhancement'
    url = 'https://bugs.python.org/issue10927'
    versions = []

    @gjb1002
    Copy link
    Mannequin Author

    gjb1002 mannequin commented Jan 17, 2011

    It would be useful to compare the contents of two files while not caring what platform they were produced on, perhaps a universal_line_endings parameter to e.g. filecmp.cmp and possibly other methods.

    At the moment opening the files with "rb" is hardcoded in filecmp.py.

    If there is another way to achieve this, please enlighten me...

    @gjb1002 gjb1002 mannequin added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Jan 17, 2011
    @bitdancer
    Copy link
    Member

    Duplicate of bpo-6306.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant