From cd551a5ba7a16302a8086e6e8b246df06bfafaa1 Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Thu, 23 Nov 2017 14:06:33 +0300 Subject: [PATCH] Py3: fix for lack of basestring --- lattice2Subsequencer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lattice2Subsequencer.py b/lattice2Subsequencer.py index e4fbc61..95f1a06 100644 --- a/lattice2Subsequencer.py +++ b/lattice2Subsequencer.py @@ -49,6 +49,9 @@ class SubsequencingError_LinkValue(SubsequencingError): # ----------------------------------------------- # ---------------------------------------------- +if not hasattr(__builtins__, "basestring"): + basestring = str #Py3 compatibility + class HashableShape(object): "Decorator for Part.Shape, that can be used as key in dicts. Based on isSame method." def __init__(self, shape):