`pygettext` generates output even when there should be none
オープン
まだ誰も着手していません。
easy
triaged
type-bug
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
Bug report
Bug description:
This occurs in two cases:
- Output is still generated when there is no input. Whereas
xgettext:
And the second case follows on from this (but can also occur with input files)$ xgettext xgettext: no input file given Try 'xgettext --help' for more information. - In
xgettext, no output is generated if there are no messages. Inpygettextoutput is still generate even if no messages are found, the header is still sent.
We should fix it to work likexgettextand not produce "empty" output.
cc @tomasr8
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
- gh-156322
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
pygettext のコマンドラインエントリーポイントから始め、入力なしおよびメッセージなしの場合の動作を xgettext と比較します。どちらの場合も出力がないことを確認し、その後、既存の pygettext テストを確認するか、これら 2 つのシナリオのカバレッジを追加します。リンクされている PR gh-156322 は、すでに作業が進められている可能性を示しています。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100