]>
crepu.dev Git - config.git/blob - djavu-asus/elpy/rpc-venv/lib/python3.11/site-packages/jedi/_compatibility.py
2 This module is here to ensure compatibility of Windows/Linux/MacOS and
3 different Python versions.
10 def pickle_load(file):
12 return pickle
.load(file)
13 # Python on Windows don't throw EOF errors for pipes. So reraise them with
14 # the correct type, which is caught upwards.
16 if sys
.platform
== 'win32':
21 def pickle_dump(data
, file, protocol
):
23 pickle
.dump(data
, file, protocol
)
24 # On Python 3.3 flush throws sometimes an error even though the writing
25 # operation should be completed.
27 # Python on Windows don't throw EPIPE errors for pipes. So reraise them with
28 # the correct type and error number.
30 if sys
.platform
== 'win32':
31 raise IOError(errno
.EPIPE
, "Broken pipe")