Skip to content

email.utils.parsedate_tz raises UnboundLocalError if time has more than 2 dots in it #89402

@benhoyt

Description

@benhoyt
mannequin
BPO 45239
Nosy @warsaw, @benhoyt, @ambv, @miss-islington
PRs
  • bpo-45239: Fix parsedate_tz when time has more than 2 dots in it #28452
  • [3.9] bpo-45239: Fix parsedate_tz when time has more than 2 dots in it (GH-28452) #28928
  • [3.10] bpo-45239: Fix parsedate_tz when time has more than 2 dots in it (GH-28452) #28930
  • 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 2021-10-13.17:12:48.420>
    created_at = <Date 2021-09-18.22:35:53.284>
    labels = ['type-bug', 'library', '3.10', '3.11']
    title = 'email.utils.parsedate_tz raises UnboundLocalError if time has more than 2 dots in it'
    updated_at = <Date 2021-10-13.17:12:48.418>
    user = 'https://github.com/benhoyt'

    bugs.python.org fields:

    activity = <Date 2021-10-13.17:12:48.418>
    actor = 'lukasz.langa'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-10-13.17:12:48.420>
    closer = 'lukasz.langa'
    components = ['Library (Lib)']
    creation = <Date 2021-09-18.22:35:53.284>
    creator = 'benhoyt'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 45239
    keywords = ['patch']
    message_count = 6.0
    messages = ['402140', '402141', '403847', '403852', '403856', '403857']
    nosy_count = 4.0
    nosy_names = ['barry', 'benhoyt', 'lukasz.langa', 'miss-islington']
    pr_nums = ['28452', '28928', '28930']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue45239'
    versions = ['Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only 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