mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 14:34:31 +08:00
More unicode conversions
This commit is contained in:
@@ -207,7 +207,7 @@ class DirectObjectAccess(object):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return u(cls.__name__)
|
return u(cls.__name__, errors='replace')
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@@ -399,7 +399,7 @@ class DirectObjectAccess(object):
|
|||||||
objects of an objects
|
objects of an objects
|
||||||
"""
|
"""
|
||||||
tuples = dict(
|
tuples = dict(
|
||||||
(name, self.is_allowed_getattr(name))
|
(u(name, errors='replace'), self.is_allowed_getattr(name))
|
||||||
for name in self.dir()
|
for name in self.dir()
|
||||||
)
|
)
|
||||||
return self.needs_type_completions(), tuples
|
return self.needs_type_completions(), tuples
|
||||||
|
|||||||
Reference in New Issue
Block a user