Skip to content

Commit 3a0f2a0

Browse files
authored
Don't redefine profiler variable to incompatible type (#910)
Fixes `Type "bool" is incompatible with type "() -> None"` As discussed in https://github.com/alisw/alibuild/pull/882/files#r1851624332
1 parent 59749dc commit 3a0f2a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aliBuild

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ if __name__ == "__main__":
111111
else:
112112
os.environ["ALIBUILD_ANALYTICS_USER_UUID"] = open(expanduser("~/.config/alibuild/analytics-uuid")).read().strip()
113113
try:
114-
profiler = "--profile" in sys.argv
115-
if profiler:
114+
useProfiler = "--profile" in sys.argv
115+
if useProfiler:
116116
print("profiler started")
117117
import cProfile, pstats
118118
from io import StringIO

0 commit comments

Comments
 (0)