Skip to content

Commit f4f78b0

Browse files
authored
interpreterInfo.py: Create the object in a single operation (#93)
1 parent 592ab65 commit f4f78b0

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

crates/pet/tests/interpreterInfo.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
import json
55
import sys
66

7-
obj = {}
8-
obj["version_info"] = tuple(sys.version_info)
9-
obj["sys_prefix"] = sys.prefix
10-
obj["sys_version"] = sys.version
11-
obj["is64_bit"] = sys.maxsize > 2**32
12-
obj["executable"] = sys.executable
7+
obj = {
8+
"version_info": tuple(sys.version_info),
9+
"sys_prefix": sys.prefix,
10+
"sys_version": sys.version,
11+
"is64_bit": sys.maxsize > 2**32,
12+
"executable": sys.executable,
13+
}
1314

1415
# Everything after this is the information we need
1516
print("503bebe7-c838-4cea-a1bc-0f2963bcb657")

0 commit comments

Comments
 (0)