Skip to content

Commit cabfcb2

Browse files
committed
Update pyyaml version.
1 parent f4cb207 commit cabfcb2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

redis_cache/serializers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,11 @@ def deserialize(self, value):
6666
class YAMLSerializer(BaseSerializer):
6767

6868
def serialize(self, value):
69-
return yaml.dump(value, encoding='utf-8')
69+
return yaml.dump(value, encoding='utf-8', Dumper=yaml.Dumper)
7070

7171
def deserialize(self, value):
72-
return yaml.load(value)
72+
return yaml.load(value, Loader=yaml.FullLoader)
73+
7374

7475
class DummySerializer(BaseSerializer):
7576

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ hiredis==0.2.0
22
django-nose==1.4.4
33
nose==1.3.6
44
msgpack-python==0.4.6
5-
pyyaml==3.13
5+
pyyaml==5.3.1

0 commit comments

Comments
 (0)