Skip to content

Commit 6237cc7

Browse files
committed
fix mypy
1 parent 5126bf0 commit 6237cc7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/test/libregrtest/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,10 @@ def __init__(self, ns: Namespace, _add_python_opts: bool = False):
163163

164164
history_file = os.path.join(os.path.expanduser('~'), '.python_history')
165165
self.__history_file = history_file
166+
self.__history_stat: tuple[int, int] | None = None
166167
if os.path.exists(history_file):
167168
st = os.stat(history_file)
168169
self.__history_stat = (stat.S_IFMT(st.st_mode), st.st_size)
169-
else:
170-
self.__history_stat = None
171170

172171
def log(self, line: str = '') -> None:
173172
self.logger.log(line)

0 commit comments

Comments
 (0)