mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
The default of one function was not actually used
This commit is contained in:
@@ -296,7 +296,7 @@ class DirectObjectAccess(object):
|
|||||||
# -> just set it to None
|
# -> just set it to None
|
||||||
if default is _sentinel:
|
if default is _sentinel:
|
||||||
raise
|
raise
|
||||||
return None
|
return default
|
||||||
|
|
||||||
def get_safe_value(self):
|
def get_safe_value(self):
|
||||||
if type(self._obj) in (bool, bytes, float, int, str, unicode, slice):
|
if type(self._obj) in (bool, bytes, float, int, str, unicode, slice):
|
||||||
@@ -404,6 +404,7 @@ class DirectObjectAccess(object):
|
|||||||
Used to return a couple of infos that are needed when accessing the sub
|
Used to return a couple of infos that are needed when accessing the sub
|
||||||
objects of an objects
|
objects of an objects
|
||||||
"""
|
"""
|
||||||
|
# TODO is_allowed_getattr might raise an AttributeError
|
||||||
tuples = dict(
|
tuples = dict(
|
||||||
(force_unicode(name), self.is_allowed_getattr(name))
|
(force_unicode(name), self.is_allowed_getattr(name))
|
||||||
for name in self.dir()
|
for name in self.dir()
|
||||||
|
|||||||
Reference in New Issue
Block a user