Skip to content

Commit

Permalink
pymysql workaround.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Feb 27, 2018
1 parent 17ad29f commit c950849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playhouse/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def db_value(self, value):
class PickleField(BlobField):
def python_value(self, value):
if value is not None:
if isinstance(value, (self._constructor, buffer_type)):
if isinstance(value, buffer_type):
value = bytes(value)
return pickle.loads(value)

Expand Down

0 comments on commit c950849

Please sign in to comment.