[gsoc-admin] Contact: Access private variable in property
- From: Lasse Schuirmann <lschuirma src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gsoc-admin] Contact: Access private variable in property
- Date: Wed, 12 Aug 2015 17:51:52 +0000 (UTC)
commit 2a9a4d5adeb3f86fa958d9ff26818b927f708992
Author: Lasse Schuirmann <lasse schuirmann gmail com>
Date: Wed Aug 12 18:52:49 2015 +0200
Contact: Access private variable in property
Otherwise this will be a recursive invokation.
maillib/email.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/maillib/email.py b/maillib/email.py
index 56dc6fd..1e477a0 100755
--- a/maillib/email.py
+++ b/maillib/email.py
@@ -12,7 +12,7 @@ class Contact:
@property
def name(self):
- return self.name or "Unknown Name"
+ return self._name or "Unknown Name"
def pretty_email_name(self):
return "{name} <{mail}>".format(name=self.name, mail=self.mail)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]