ports/devel/py-jupyter_client/patches/patch-jupyter_client_connect_py

21 lines
656 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: jupyter_client/connect.py
--- jupyter_client/connect.py.orig
+++ jupyter_client/connect.py
2023-09-08 05:21:37 +00:00
@@ -15,6 +15,7 @@ import socket
2023-08-16 22:26:55 +00:00
import stat
import tempfile
import warnings
+import sys
from getpass import getpass
from contextlib import contextmanager
2023-09-08 05:21:37 +00:00
@@ -138,7 +139,7 @@ def write_connection_file(fname=None, shell_port=0, io
2023-08-16 22:26:55 +00:00
with secure_write(fname) as f:
f.write(json.dumps(cfg, indent=2))
- if hasattr(stat, 'S_ISVTX'):
+ if hasattr(stat, 'S_ISVTX') and not sys.platform.startswith('openbsd'):
# set the sticky bit on the file and its parent directory
# to avoid periodic cleanup
paths = [fname]