[Telepathy-commits] [telepathy-python/master] Make account.py ignore blank lines in account files

Will Thompson will.thompson at collabora.co.uk
Sun Aug 24 11:31:29 PDT 2008


---
 examples/account.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/examples/account.py b/examples/account.py
index ed6f436..1af4504 100644
--- a/examples/account.py
+++ b/examples/account.py
@@ -9,6 +9,9 @@ def parse_account(s):
     protocol = None
 
     for line in lines:
+        if not line.strip():
+            continue
+
         k, v = line.split(':', 1)
         k = k.strip()
         v = v.strip()
-- 
1.5.6.3




More information about the Telepathy-commits mailing list