-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for value being boolean in set().
- Loading branch information
Sean Reifschneider
committed
Jul 31, 2015
1 parent
d9c602f
commit 664bd3e
Showing
2 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
Fri, 31 Jul 2015 11:38:25 -0600 Sean Reifschneider <[email protected]> | ||
|
||
* 1.57 release. | ||
|
||
* Fix for #75 and #76, mc.set(key, False) results in "ValueError: | ||
invalid literal for int()". Reported by Carlos Sanchez on github. | ||
|
||
Sun, 26 Jul 2015 14:44:20 -0600 Sean Reifschneider <[email protected]> | ||
|
||
* 1.56 release. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,7 +90,7 @@ def useOldServerHashFunction(): | |
|
||
# Original author: Evan Martin of Danga Interactive | ||
__author__ = "Sean Reifschneider <[email protected]>" | ||
__version__ = "1.56" | ||
__version__ = "1.57" | ||
__copyright__ = "Copyright (C) 2003 Danga Interactive" | ||
# http://en.wikipedia.org/wiki/Python_Software_Foundation_License | ||
__license__ = "Python Software Foundation License" | ||
|
@@ -934,7 +934,7 @@ def _val_to_store_info(self, val, min_compress_len): | |
val = val.encode('utf-8') | ||
elif isinstance(val, int): | ||
flags |= Client._FLAG_INTEGER | ||
val = str(val) | ||
val = '%d' % val | ||
if six.PY3: | ||
val = val.encode('ascii') | ||
# force no attempt to compress this silly string. | ||
|