From e787a71ea8bbcfc9ebc5e8ab166300f5a70a7ab1 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sun, 29 Apr 2012 22:07:48 +0200 Subject: [PATCH] prefix private attribute with a _ --- modules/aum/antispam.py | 2 +- modules/aum/contact.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/aum/antispam.py b/modules/aum/antispam.py index 236425a5..79e13090 100644 --- a/modules/aum/antispam.py +++ b/modules/aum/antispam.py @@ -77,7 +77,7 @@ class AntiSpam(object): if contact.id == 1: return True - if not self.check_profile(contact.aum_profile): + if not self.check_profile(contact._aum_profile): return False return True diff --git a/modules/aum/contact.py b/modules/aum/contact.py index c0ff46ad..0dd3bbe9 100644 --- a/modules/aum/contact.py +++ b/modules/aum/contact.py @@ -253,7 +253,7 @@ class Contact(_Contact): self.profile[section] = s - self.aum_profile = profile + self._aum_profile = profile def get_text(self): def print_node(node, level=1):