Commit 6adf04d
committed
Remove forced use of pickle protocol version 2 (issue #115)
Both microscope.client and microscope.deviceserver modules set Pyro to
use pickle with its protocol version 2. This was done in b9e5c1c
to support both Python 2 and 3 (pickle's protocol version 2 is the
highest supported in Python 2). However, we now require Python>=3.5
which can handle up to protocol version 4. Higher protocol versions
are desirable because they bring performance improvements with
support for more native data types.
We could set Pyro.config.PICKLE_PROTOCOL_VERSION to version 4. This
helps users when client and server are in different Python versions.
However, this forces others to use older protocol versions. Instead,
the onus should be on users that need something different from the
default. This can be easily done on the device server config file.1 parent 8f2d2fd commit 6adf04d
2 files changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
0 commit comments