buildtools/wafsamba: fix basestring not defined error in PY3
[samba.git] / buildtools / wafsamba / samba_version.py
index a5ad810321555a4f93c76ba3cc3dcc3658206fbe..6a8ffb6e90c2f0f6c08993d4daabe578b352ceee 100644 (file)
@@ -198,7 +198,7 @@ also accepted as dictionary entries here
         for name in sorted(self.vcs_fields.keys()):
             string+="#define SAMBA_VERSION_%s " % name
             value = self.vcs_fields[name]
-            if isinstance(value, basestring):
+            if isinstance(value, str) or isinstance(value, basestring):
                 string += "\"%s\"" % value
             elif type(value) is int:
                 string += "%d" % value