mirror of
https://github.com/python/cpython
synced 2024-10-17 15:28:20 +00:00
Fix a grammar mistake in a comment.
This commit is contained in:
parent
1a6e0d0831
commit
45a583b698
|
@ -12,10 +12,10 @@ class DBPickler(pickle.Pickler):
|
|||
|
||||
def persistent_id(self, obj):
|
||||
# Instead of pickling MemoRecord as a regular class instance, we emit a
|
||||
# persistent ID instead.
|
||||
# persistent ID.
|
||||
if isinstance(obj, MemoRecord):
|
||||
# Here, our persistent ID is simply a tuple containing a tag and a
|
||||
# key which refers to a specific record in the database.
|
||||
# Here, our persistent ID is simply a tuple, containing a tag and a
|
||||
# key, which refers to a specific record in the database.
|
||||
return ("MemoRecord", obj.key)
|
||||
else:
|
||||
# If obj does not have a persistent ID, return None. This means obj
|
||||
|
|
Loading…
Reference in a new issue