Skip to content

os.stat / os.lstat always present, but code checks hastattr(os, 'stat') / hasattr(os, 'lstat') #79983

@asottile

Description

@asottile
mannequin
BPO 35802
Nosy @gpshead, @giampaolo, @asottile
PRs
  • bpo-35802: Clean up code which checked presence of os.{stat,lstat,chmod} #11643
  • bpo-35802: Clean up code which checked presence of os.{stat,lstat,chmod} #11643
  • 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 2019-02-25.22:55:35.604>
    created_at = <Date 2019-01-21.21:42:34.213>
    labels = ['3.8', 'library']
    title = "os.stat / os.lstat always present, but code checks hastattr(os, 'stat') / hasattr(os, 'lstat')"
    updated_at = <Date 2019-02-26.00:07:17.042>
    user = 'https://github.com/asottile'

    bugs.python.org fields:

    activity = <Date 2019-02-26.00:07:17.042>
    actor = 'giampaolo.rodola'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-02-25.22:55:35.604>
    closer = 'Anthony Sottile'
    components = ['Library (Lib)']
    creation = <Date 2019-01-21.21:42:34.213>
    creator = 'Anthony Sottile'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 35802
    keywords = ['patch', 'patch']
    message_count = 5.0
    messages = ['334182', '334184', '334226', '334229', '336584']
    nosy_count = 3.0
    nosy_names = ['gregory.p.smith', 'giampaolo.rodola', 'Anthony Sottile']
    pr_nums = ['11643', '11643']
    priority = 'normal'
    resolution = None
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue35802'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions