py3 doesn't work with basestring, this fixes py3 use #10

Merged
merged 1 commit into from Oct 20, 2015
Jump to file or symbol
Failed to load files and symbols.
+3 −0
Diff settings

Always

Just for now

py3 doesn't work with basestring, this fixes py3 use

  • Loading branch information...
kckrinke committed Oct 20, 2015
commit 6652ac8d9667589d7a9a0d1f5f0aefdcdce12d5c
@@ -5,6 +5,9 @@
import bleach
+import sys
+if sys.version_info[0] == 3:
+ basestring = str
ALLOWED_TAGS = getattr(settings, 'SANITIZER_ALLOWED_TAGS', [])
ALLOWED_ATTRIBUTES = getattr(settings, 'SANITIZER_ALLOWED_ATTRIBUTES', [])