Skip to content

Commit 4bf7f8b

Browse files
committed
Comment
1 parent eae823d commit 4bf7f8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

django_mongodb_backend/cache.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def __init__(self, protocol=None):
1414
self.protocol = pickle.HIGHEST_PROTOCOL if protocol is None else protocol
1515

1616
def dumps(self, obj):
17+
# Integers do not need serialization.
1718
if isinstance(obj, int):
1819
return obj
1920
return pickle.dumps(obj, self.protocol)

0 commit comments

Comments
 (0)