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