From 8ee1eddb7e148de89aebde9e68da495633fc1ec9 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Thu, 13 Dec 2012 22:11:06 +0100 Subject: Add a BinaryField model field Thanks Michael Jung, Charl Botha and Florian Apolloner for review and help on the patch. --- django/utils/six.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'django/utils') diff --git a/django/utils/six.py b/django/utils/six.py index b93dc5b164..208c5c1112 100644 --- a/django/utils/six.py +++ b/django/utils/six.py @@ -394,10 +394,14 @@ if PY3: _iterlists = "lists" _assertRaisesRegex = "assertRaisesRegex" _assertRegex = "assertRegex" + memoryview = memoryview else: _iterlists = "iterlists" _assertRaisesRegex = "assertRaisesRegexp" _assertRegex = "assertRegexpMatches" + # memoryview and buffer are not stricly equivalent, but should be fine for + # django core usage (mainly BinaryField) + memoryview = buffer def iterlists(d): -- cgit v1.3