From 14efa15c97c75e8bf32b46e227670a46e03ffdce Mon Sep 17 00:00:00 2001 From: Manuel Barkhau Date: Sun, 11 Nov 2018 15:44:43 +0100 Subject: [PATCH] fix: bug in commit subcommand --- src/pycalver/vcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pycalver/vcs.py b/src/pycalver/vcs.py index 4897f6f..c233ba3 100644 --- a/src/pycalver/vcs.py +++ b/src/pycalver/vcs.py @@ -96,7 +96,7 @@ class VCS: message_data = message.encode("utf-8") tmp_file = tempfile.NamedTemporaryFile("wb", delete=False) - assert " " not in tmp_file + assert " " not in tmp_file.name with tmp_file as fh: fh.write(message_data)