1
0
forked from VimPlug/jedi

Get the subprocess mostly working

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

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