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

fix for a bug in Header.__unicode__() #41550

Closed
sonderblade mannequin opened this issue Feb 9, 2005 · 3 comments
Closed

fix for a bug in Header.__unicode__() #41550

sonderblade mannequin opened this issue Feb 9, 2005 · 3 comments
Assignees
Labels
stdlib Python modules in the Lib dir

Comments

@sonderblade
Copy link
Mannequin

sonderblade mannequin commented Feb 9, 2005

BPO 1119016
Nosy @malemburg, @warsaw
Files
  • fix_Header.unicode.diff: Fix for bug in Header.unicode()
  • 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/warsaw'
    closed_at = <Date 2005-02-11.23:01:44.000>
    created_at = <Date 2005-02-09.00:55:02.000>
    labels = ['library']
    title = 'fix for a bug in Header.__unicode__()'
    updated_at = <Date 2005-02-11.23:01:44.000>
    user = 'https://bugs.python.org/sonderblade'

    bugs.python.org fields:

    activity = <Date 2005-02-11.23:01:44.000>
    actor = 'sonderblade'
    assignee = 'barry'
    closed = True
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2005-02-09.00:55:02.000>
    creator = 'sonderblade'
    dependencies = []
    files = ['6488']
    hgrepos = []
    issue_num = 1119016
    keywords = ['patch']
    message_count = 3.0
    messages = ['47734', '47735', '47736']
    nosy_count = 3.0
    nosy_names = ['lemburg', 'barry', 'sonderblade']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1119016'
    versions = ['Python 2.5']

    @sonderblade
    Copy link
    Mannequin Author

    sonderblade mannequin commented Feb 9, 2005

    In three places in the __unicode__ method there is a
    line that looks like this:

    if lastcs not in (None, 'us-ascii'):

    They will generate a TypeError because lastcs is a
    Charset object. This patch fixes this bug by using
    (None, Charset('us-ascii')) instead.

    @sonderblade sonderblade mannequin closed this as completed Feb 9, 2005
    @sonderblade sonderblade mannequin assigned warsaw Feb 9, 2005
    @sonderblade sonderblade mannequin added the stdlib Python modules in the Lib dir label Feb 9, 2005
    @sonderblade sonderblade mannequin closed this as completed Feb 9, 2005
    @sonderblade sonderblade mannequin assigned warsaw Feb 9, 2005
    @sonderblade sonderblade mannequin added the stdlib Python modules in the Lib dir label Feb 9, 2005
    @malemburg
    Copy link
    Member

    Logged In: YES
    user_id=38388

    Hi Barry,

    I think Björn is talking about a problem in the email package.

    Note to Björn: the patch does not seem to have made it.
    Please try again.

    @sonderblade
    Copy link
    Mannequin Author

    sonderblade mannequin commented Feb 11, 2005

    Logged In: YES
    user_id=51702

    The bug was caused by an optimization in compile.c by
    rhettiger. The change was then rolled back so this bug is
    not a bug anymore.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 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
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants