changeset 111:c0d53e920bd1

py3
author Jeff Hammel <k0scist@gmail.com>
date Tue, 03 Nov 2020 11:14:15 -0800
parents 8298abd49954
children fb4bdbfbce83
files decoupage/web.py
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/decoupage/web.py	Tue Nov 03 11:11:07 2020 -0800
+++ b/decoupage/web.py	Tue Nov 03 11:14:15 2020 -0800
@@ -35,7 +35,13 @@
 from .formatters import formatters
 
 transformers = transformers()
-string = (str, unicode)
+
+try:
+    # python2
+    string = (str, unicode)
+except NameError:
+    # python3
+    string = (str,)
 
 
 class FileSorter(object):