Get the subprocess mostly working

This commit is contained in:
Dave Halter committed 2017-12-08 09:44:12 +01:00
1 parent a210be8198
commit 649225333f
6 files changed
+59 -31

No files matched your search

+2 -2
View File
@@ -274,9 +274,9 @@ class DirectObjectAccess(object):
return None
def get_safe_value(self):
if type(self._obj) in (float, int, str, unicode, slice, type(Ellipsis)):
if type(self._obj) in (bool, bytes, float, int, str, unicode, slice, type(Ellipsis)):
return self._obj
raise ValueError
raise ValueError("Object is type %s and not simple" % type(self._obj))
def get_api_type(self):
obj = self._obj