Skip to content

Commit 6a6ecaa

Browse files
2023.2 patch 1 release code drop
Made P4Exception object pickleable.
1 parent eefdd25 commit 6a6ecaa

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

P4.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
This uses the Python type P4API.P4Adapter, which is a wrapper for the
88
Perforce ClientApi object.
99
10-
$Id: //depot/main/p4-python/P4.py#109 $
10+
$Id: //depot/main/p4-python/P4.py#110 $
1111
1212
#*******************************************************************************
1313
# Copyright (c) 2007-2010, Perforce Software, Inc. All rights reserved.
@@ -64,9 +64,16 @@ def __init__(self, value):
6464
self.warnings = value[2]
6565
else:
6666
self.value = value
67+
6768
def __str__(self):
6869
return str(self.value)
6970

71+
def __reduce__(self):
72+
if hasattr(self, 'errors'):
73+
return (self.__class__, ((self.value, self.errors, self.warnings),))
74+
return (self.__class__, (self.value,))
75+
76+
7077
class Spec(dict):
7178
"""Subclass of dict, representing the fields of a spec definition.
7279

RELNOTES.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,17 @@ Key to symbols used in change notes below.
294294

295295
--------------------------------------------------------------------------
296296

297+
New functionality in 2023.2 Patch 1 (2023.2/2543803) (2024/01/22)
298+
299+
(Job #118907)
300+
This release is built against P4API (2023.2/2519561),
301+
to address possible vulnerability: CVE-2023-5759.
302+
303+
#2542109 (Job #117135)
304+
Made P4Exception object pickleable.
305+
306+
--------------------------------------------------------------------------
307+
297308
New functionality in 2023.2 (2023.2/2527637) (2023/12/04)
298309

299310
#2522046 (Job #117813)
@@ -335,6 +346,14 @@ New functionality in 2023.1 (2023.1/2454917) (2023/06/15)
335346

336347
--------------------------------------------------------------------------
337348

349+
New functionality in 2022.2 Patch 2 (2022.2/2543766) (2024/01/18)
350+
351+
(Job #118907)
352+
This release is built against P4API (2022.2/2531894),
353+
to address possible vulnerability: CVE-2023-5759.
354+
355+
--------------------------------------------------------------------------
356+
338357
New functionality in 2022.2 Patch 1 (2022.2/2428370) (2023/04/13)
339358

340359
#2427292 (Job #113073)

0 commit comments

Comments
 (0)