Fix a grammar mistake in a comment.

This commit is contained in:
Alexandre Vassalotti 2008-10-25 17:10:07 +00:00
parent 1a6e0d0831
commit 45a583b698

View file

@ -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