GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Don't use mktemp · Issue #41 · gitpython-developers/smmap

This repository was archived by the owner on Jul 26, 2026. It is now read-only.
This repository was archived by the owner on Jul 26, 2026. It is now read-only.

Don't use mktemp #41

Copy link
Copy link
Closed
#56
Closed
Don't use mktemp#41
#56
Copy link
Labels
acknowledgedhelp wanted

Description

@rossburton
rossburton
opened on Nov 23, 2018
Issue body actions

Security scanners like Bandit don't like anyone using mktemp (smmap/test/lib.py), so to silence them consider using other functions in tempfile.

Activity

  1. Byron
    added
    help wanted
    acknowledged
    on Dec 21, 2018
  2. Byron commented on Dec 21, 2018

    @Byron
    Byron
    on Dec 21, 2018
    Member
    More actions

    Thanks a lot for the note. Do you know an alternative? If so, maybe one could contribute a PR.

  3. rossburton commented on Dec 21, 2018

    @rossburton
    rossburton
    on Dec 21, 2018 via email
    Author
    More actions
    Every other function in tempfile is good.
    …
    On Fri, 21 Dec 2018 at 11:36, Sebastian Thiel ***@***.***> wrote: Thanks a lot for the note. Do you know an alternative? If so, maybe one could contribute a PR. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#41 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAB-iqZo9xEUwEki27A5R20hcxbGfAJ8ks5u7MemgaJpZM4YwxDn> .
    Reacted by Sebastian Thiel
  4. EliahKagan
    added 2 commits that reference this issue on Dec 13, 2023

    Avoid mktemp in tests, in straightforward cases

    41fac85

    Replace use of mktemp

    a315725
  5. Byron
    closed this as completedin #56on Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acknowledgedhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.