summaryrefslogtreecommitdiffstats
path: root/repo_trace.py
diff options
context:
space:
mode:
Diffstat (limited to 'repo_trace.py')
-rw-r--r--repo_trace.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/repo_trace.py b/repo_trace.py
index d243ce6c..ee224ea7 100644
--- a/repo_trace.py
+++ b/repo_trace.py
@@ -142,7 +142,7 @@ def _GetTraceFile(quiet):
142def _ClearOldTraces(): 142def _ClearOldTraces():
143 """Clear the oldest commands if trace file is too big.""" 143 """Clear the oldest commands if trace file is too big."""
144 try: 144 try:
145 with open(_TRACE_FILE, "r", errors="ignore") as f: 145 with open(_TRACE_FILE, errors="ignore") as f:
146 if os.path.getsize(f.name) / (1024 * 1024) <= _MAX_SIZE: 146 if os.path.getsize(f.name) / (1024 * 1024) <= _MAX_SIZE:
147 return 147 return
148 trace_lines = f.readlines() 148 trace_lines = f.readlines()