Skip to content

Commit 3599257

Browse files
committed
Replace socket.gethostname by platform.node
1 parent 0a7c60f commit 3599257

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pytensor/configdefaults.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import platform
55
import re
66
import shutil
7-
import socket
87
import sys
98
import textwrap
109
from pathlib import Path
@@ -1190,7 +1189,7 @@ def _get_home_dir() -> Path:
11901189
"pytensor_version": pytensor.__version__,
11911190
"numpy_version": np.__version__,
11921191
"gxx_version": "xxx",
1193-
"hostname": socket.gethostname(),
1192+
"hostname": platform.node(),
11941193
}
11951194

11961195

0 commit comments

Comments
 (0)