Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/pipPublic

pip autocompletion should silence of KeyboardInterrupts #3942

Closed
Labels
auto-lockedOutdated issues that have been locked by automationgood first issueA good item for first time contributors to work ontype: enhancementImprovements to functionality
@anntzer

Description

@anntzer
  • Pip version: 8.1.2
  • Python version: 3.5.2
  • Operating System: Arch Linux

Description:

pip uninstall <TAB> quickly followed by Ctrl-C causes a traceback (associated with the KeyboardInterrupt) to be printed. This traceback should arguably not be displayed.

A simple fix would be to changepip completion --zsh (and similarly--bash) to

# pip zsh completion startfunction _pip_completion {  local words cword  read -Ac words  read -cn cword  reply=( $( COMP_WORDS="$words[*]" \             COMP_CWORD=$(( cword-1 )) \             PIP_AUTO_COMPLETE=1 $words[1] 2>/dev/null ) ) # note the redirection.}compctl -K _pip_completion pip# pip zsh completion end

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automationgood first issueA good item for first time contributors to work ontype: enhancementImprovements to functionality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp