Skip to content

Commit 6473777

Browse files
fixed warnings
1 parent 7a216f9 commit 6473777

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

things_cli/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
from xml.etree.ElementTree import Element, SubElement
1616

1717
import argcomplete # type: ignore
18-
1918
import things as api
19+
2020
from things_cli import __version__
2121

2222

@@ -164,7 +164,7 @@ def txt_dumps(self, tasks, indentation="", result=""):
164164
@classmethod
165165
def print_unimplemented(cls, command):
166166
"""Show warning that method is not yet implemented."""
167-
print("command '%s' not implemented yet" % command, file=sys.stderr)
167+
print(f"command '{command}' not implemented yet", file=sys.stderr)
168168

169169
@classmethod
170170
def get_parser(cls):
@@ -311,7 +311,7 @@ def get_parser(cls):
311311
"--version",
312312
"-v",
313313
action="version",
314-
version="%(prog)s (version {version})".format(version=__version__),
314+
version=f"%(prog)s (version {__version__})",
315315
)
316316

317317
argcomplete.autocomplete(parser)

0 commit comments

Comments
 (0)