Merge pull request #10706 from mscherer/fix_deprecate_v2

Pylint show a error "no deprecations variable"
pull/10710/head
Brian Coca 10 years ago
commit cec42eac47

@ -100,7 +100,7 @@ class Display:
wrapped = textwrap.wrap(new_msg, 79)
new_msg = "\n".join(wrapped) + "\n"
if new_msg not in deprecations:
if new_msg not in self._deprecations:
self.display(new_msg, color='purple', stderr=True)
self._deprecations[new_msg] = 1

Loading…
Cancel
Save