Skip to content

fileinput.hook_compressed returning bytes from gz file #50008

@mnewman

Description

@mnewman
mannequin
BPO 5758
Nosy @amauryfa, @jaraco, @merwok, @bitdancer, @methane
PRs
  • bpo-43712 : fileinput: Add encoding parameter #25272
  • Files
  • example.zip: ZIP file containing test example
  • issue5758_fileinput_gzip_with_encoding.patch: Fixed issue fileinput.hook_compressed returning bytes from gz file #50008. fileinput.hook_compressed returns string (and not bytes) from gz file again.
  • issue5758_fileinput_gzip_with_encoding_v2.patch: New version of the patch after reviewer's considerations
  • 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 = 'https://github.com/merwok'
    closed_at = <Date 2021-04-14.05:13:39.981>
    created_at = <Date 2009-04-14.23:48:01.306>
    labels = ['type-bug', 'library', '3.10']
    title = 'fileinput.hook_compressed returning bytes from gz file'
    updated_at = <Date 2021-05-26.03:46:18.079>
    user = 'https://bugs.python.org/mnewman'

    bugs.python.org fields:

    activity = <Date 2021-05-26.03:46:18.079>
    actor = 'methane'
    assignee = 'eric.araujo'
    closed = True
    closed_date = <Date 2021-04-14.05:13:39.981>
    closer = 'methane'
    components = ['Library (Lib)']
    creation = <Date 2009-04-14.23:48:01.306>
    creator = 'mnewman'
    dependencies = []
    files = ['13688', '24807', '24815']
    hgrepos = []
    issue_num = 5758
    keywords = ['patch']
    message_count = 21.0
    messages = ['85978', '111063', '155471', '155532', '155538', '155540', '155543', '155548', '155553', '155554', '155577', '155595', '155618', '155622', '155624', '348642', '394286', '394287', '394290', '394338', '394413']
    nosy_count = 7.0
    nosy_names = ['amaury.forgeotdarc', 'jaraco', 'eric.araujo', 'r.david.murray', 'mnewman', 'methane', 'tati_alchueyr']
    pr_nums = ['25272']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue5758'
    versions = ['Python 3.10']

    Metadata

    Metadata

    Assignees

    Labels

    3.10only security fixesstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions