* [PATCH 1/3] CLI/git: remove unused import
@ 2024-01-12 16:27 Jakub Wilk
2024-01-12 16:27 ` [PATCH 2/3] CLI/git: fix name error Jakub Wilk
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Jakub Wilk @ 2024-01-12 16:27 UTC (permalink / raw)
To: notmuch
shutil was used only for the tempfile.TemporaryDirectory backport,
which was removed in commit b7c31f658121a0cf ("CLI/git: drop support for
python < 3.2").
---
notmuch-git.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/notmuch-git.py b/notmuch-git.py
index 57098aae..a11501ae 100644
--- a/notmuch-git.py
+++ b/notmuch-git.py
@@ -31,7 +31,6 @@ import locale as _locale
import logging as _logging
import os as _os
import re as _re
-import shutil as _shutil
import subprocess as _subprocess
import sys as _sys
import tempfile as _tempfile
--
2.39.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] CLI/git: fix name error
2024-01-12 16:27 [PATCH 1/3] CLI/git: remove unused import Jakub Wilk
@ 2024-01-12 16:27 ` Jakub Wilk
2024-01-12 16:27 ` [PATCH 3/3] CLI/git: remove no-op format() call Jakub Wilk
2024-01-16 16:10 ` [PATCH 1/3] CLI/git: remove unused import David Bremner
2 siblings, 0 replies; 4+ messages in thread
From: Jakub Wilk @ 2024-01-12 16:27 UTC (permalink / raw)
To: notmuch
---
notmuch-git.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/notmuch-git.py b/notmuch-git.py
index a11501ae..29f75531 100644
--- a/notmuch-git.py
+++ b/notmuch-git.py
@@ -247,7 +247,7 @@ def count_messages(prefix=None):
stdout=_subprocess.PIPE, wait=True)
if status != 0:
_LOG.error("failed to run notmuch config")
- sys.exit(1)
+ _sys.exit(1)
return int(stdout.rstrip())
def get_tags(prefix=None):
--
2.39.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] CLI/git: remove no-op format() call
2024-01-12 16:27 [PATCH 1/3] CLI/git: remove unused import Jakub Wilk
2024-01-12 16:27 ` [PATCH 2/3] CLI/git: fix name error Jakub Wilk
@ 2024-01-12 16:27 ` Jakub Wilk
2024-01-16 16:10 ` [PATCH 1/3] CLI/git: remove unused import David Bremner
2 siblings, 0 replies; 4+ messages in thread
From: Jakub Wilk @ 2024-01-12 16:27 UTC (permalink / raw)
To: notmuch
---
notmuch-git.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/notmuch-git.py b/notmuch-git.py
index 29f75531..97073c80 100644
--- a/notmuch-git.py
+++ b/notmuch-git.py
@@ -376,7 +376,7 @@ def check_safe_fraction(status):
total = count_messages (TAG_PREFIX)
if total == 0:
- _LOG.error('No existing tags with given prefix, stopping.'.format(safe))
+ _LOG.error('No existing tags with given prefix, stopping.')
_LOG.error('Use --force to override.')
exit(1)
change = len(status['added'])+len(status['deleted'])
--
2.39.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3] CLI/git: remove unused import
2024-01-12 16:27 [PATCH 1/3] CLI/git: remove unused import Jakub Wilk
2024-01-12 16:27 ` [PATCH 2/3] CLI/git: fix name error Jakub Wilk
2024-01-12 16:27 ` [PATCH 3/3] CLI/git: remove no-op format() call Jakub Wilk
@ 2024-01-16 16:10 ` David Bremner
2 siblings, 0 replies; 4+ messages in thread
From: David Bremner @ 2024-01-16 16:10 UTC (permalink / raw)
To: Jakub Wilk, notmuch
Jakub Wilk <jwilk@jwilk.net> writes:
> shutil was used only for the tempfile.TemporaryDirectory backport,
> which was removed in commit b7c31f658121a0cf ("CLI/git: drop support for
> python < 3.2").
Series applied to master.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-01-16 16:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-12 16:27 [PATCH 1/3] CLI/git: remove unused import Jakub Wilk
2024-01-12 16:27 ` [PATCH 2/3] CLI/git: fix name error Jakub Wilk
2024-01-12 16:27 ` [PATCH 3/3] CLI/git: remove no-op format() call Jakub Wilk
2024-01-16 16:10 ` [PATCH 1/3] CLI/git: remove unused import David Bremner
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).