diff options
| author | Augusto Stoffel | 2023-02-20 10:49:22 +0100 |
|---|---|---|
| committer | Eli Zaretskii | 2023-02-22 15:31:02 +0200 |
| commit | d816429e2f26731b790be77b8a8a5ce5261832ed (patch) | |
| tree | 1a1a9e9f01b84c858032b9eed5e734bd076b9832 /lisp | |
| parent | 1f4886fdb09ad6eba5b24bc5032fa650da3a7fcd (diff) | |
| download | emacs-d816429e2f26731b790be77b8a8a5ce5261832ed.tar.gz emacs-d816429e2f26731b790be77b8a8a5ce5261832ed.zip | |
* lisp/progmodes/python.el (python--import-sources): Fix regexp (bug#61648)
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/progmodes/python.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 0d714c31e9e..eab5e70af33 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -6376,7 +6376,7 @@ for key in sorted(result): | |||
| 6376 | "List files containing Python imports that may be useful in the current buffer." | 6376 | "List files containing Python imports that may be useful in the current buffer." |
| 6377 | (if-let (((featurep 'project)) ;For compatibility with Emacs < 26 | 6377 | (if-let (((featurep 'project)) ;For compatibility with Emacs < 26 |
| 6378 | (proj (project-current))) | 6378 | (proj (project-current))) |
| 6379 | (seq-filter (lambda (s) (string-match-p "\\.py[ciw]?\\'" s)) | 6379 | (seq-filter (lambda (s) (string-match-p "\\.py[iwx]?\\'" s)) |
| 6380 | (project-files proj)) | 6380 | (project-files proj)) |
| 6381 | (list default-directory))) | 6381 | (list default-directory))) |
| 6382 | 6382 | ||