Skip to content

Commit 32d13ba

Browse files
committed
Make pickling cheaper
1 parent b8842db commit 32d13ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/pathlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def __new__(cls, *args, **kwargs):
268268
def __reduce__(self):
269269
# Using the parts tuple helps share interned path parts
270270
# when pickling related paths.
271-
return (self.__class__, self.parts)
271+
return (self.__class__, (self._raw_path,))
272272

273273
def __init__(self, *args):
274274
if not args:

0 commit comments

Comments
 (0)