Remove a redundant check from Name.desc_with_module

This commit is contained in:
Josh Bax
2020-04-23 14:05:11 -07:00
committed by Dave Halter
parent 784f9ff081
commit be82d5ff36

View File

@@ -734,8 +734,7 @@ class Name(BaseName):
DeprecationWarning,
stacklevel=2
)
position = '' if self.in_builtin_module else '@%s' % self.line
return "%s:%s%s" % (self.module_name, self.description, position)
return "%s:%s" % (self.module_name, self.description)
@memoize_method
def defined_names(self):