File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 88import argparse
99import hashlib
1010import logging
11- import os
1211import re
1312import subprocess
1413import tempfile
1514import types
15+ from os import environ , unlink
1616from pathlib import Path
1717from typing import IO , Self
1818
@@ -125,14 +125,14 @@ def sign_tree_checksum(
125125 elif tag_msg_file :
126126 message = Path (tag_msg_file ).read_text ()
127127 else :
128- editor = os . environ .get ("EDITOR" , "vi" )
128+ editor = environ .get ("EDITOR" , "vi" )
129129 with tempfile .NamedTemporaryFile (mode = "w+" , delete = False , suffix = ".tmp" ) as tmp :
130130 tmp .write ("" )
131131 tmp .flush ()
132132 subprocess .run ([editor , tmp .name ], check = True )
133133 tmp .seek (0 )
134134 message = tmp .read ()
135- os . unlink (tmp .name )
135+ unlink (tmp .name )
136136
137137 pattern = (
138138 r"\n?Git-EVTag-v0-SHA512: .*\n?"
You can’t perform that action at this time.
0 commit comments