Skip to content

Commit

Permalink
2023.2 patch 1 release code drop
Browse files Browse the repository at this point in the history
Made P4Exception object pickleable.
  • Loading branch information
hjain-perforce committed Feb 7, 2024
1 parent eefdd25 commit 6a6ecaa
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
9 changes: 8 additions & 1 deletion P4.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
This uses the Python type P4API.P4Adapter, which is a wrapper for the
Perforce ClientApi object.
$Id: //depot/main/p4-python/P4.py#109 $
$Id: //depot/main/p4-python/P4.py#110 $
#*******************************************************************************
# Copyright (c) 2007-2010, Perforce Software, Inc. All rights reserved.
Expand Down Expand Up @@ -64,9 +64,16 @@ def __init__(self, value):
self.warnings = value[2]
else:
self.value = value

def __str__(self):
return str(self.value)

def __reduce__(self):
if hasattr(self, 'errors'):
return (self.__class__, ((self.value, self.errors, self.warnings),))
return (self.__class__, (self.value,))


class Spec(dict):
"""Subclass of dict, representing the fields of a spec definition.
Expand Down
19 changes: 19 additions & 0 deletions RELNOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,17 @@ Key to symbols used in change notes below.

--------------------------------------------------------------------------

New functionality in 2023.2 Patch 1 (2023.2/2543803) (2024/01/22)

(Job #118907)
This release is built against P4API (2023.2/2519561),
to address possible vulnerability: CVE-2023-5759.

#2542109 (Job #117135)
Made P4Exception object pickleable.

--------------------------------------------------------------------------

New functionality in 2023.2 (2023.2/2527637) (2023/12/04)

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

--------------------------------------------------------------------------

New functionality in 2022.2 Patch 2 (2022.2/2543766) (2024/01/18)

(Job #118907)
This release is built against P4API (2022.2/2531894),
to address possible vulnerability: CVE-2023-5759.

--------------------------------------------------------------------------

New functionality in 2022.2 Patch 1 (2022.2/2428370) (2023/04/13)

#2427292 (Job #113073)
Expand Down

0 comments on commit 6a6ecaa

Please sign in to comment.