Commit 10b0eb3d authored by Alexandre Vassalotti's avatar Alexandre Vassalotti

Fix a grammar mistake in a comment.

parent 1ef4f3b0
...@@ -12,10 +12,10 @@ class DBPickler(pickle.Pickler): ...@@ -12,10 +12,10 @@ class DBPickler(pickle.Pickler):
def persistent_id(self, obj): def persistent_id(self, obj):
# Instead of pickling MemoRecord as a regular class instance, we emit a # Instead of pickling MemoRecord as a regular class instance, we emit a
# persistent ID instead. # persistent ID.
if isinstance(obj, MemoRecord): if isinstance(obj, MemoRecord):
# Here, our persistent ID is simply a tuple containing a tag and a # Here, our persistent ID is simply a tuple, containing a tag and a
# key which refers to a specific record in the database. # key, which refers to a specific record in the database.
return ("MemoRecord", obj.key) return ("MemoRecord", obj.key)
else: else:
# If obj does not have a persistent ID, return None. This means obj # If obj does not have a persistent ID, return None. This means obj
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment