Remove unnecessary code

This commit is contained in:
Dave Halter
2020-01-01 23:11:02 +01:00
parent 0a53ce5136
commit 04a738c014
2 changed files with 2 additions and 4 deletions

View File

@@ -467,8 +467,6 @@ class Completion(BaseDefinition):
and self.type == 'function':
append = '('
self._name.api_type
name = self._name.get_public_name()
if like_name:
name = name[self._like_name_length:]

View File

@@ -267,7 +267,7 @@ def test_property_error_oldstyle(allow_unsafe_getattr):
_assert_interpreter_complete('foo.bar.baz', locals(), [])
if allow_unsafe_getattr:
assert lst == [1, 1]
assert lst == [1]
else:
# There should not be side effects
assert lst == []
@@ -287,7 +287,7 @@ def test_property_error_newstyle(allow_unsafe_getattr):
_assert_interpreter_complete('foo.bar.baz', locals(), [])
if allow_unsafe_getattr:
assert lst == [1, 1]
assert lst == [1]
else:
# There should not be side effects
assert lst == []