From 53040305ce97bd532bd27cf0c2f626136f34a572 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 6 Apr 2014 20:17:01 +0200 Subject: fix a wrong naming in the previous commit --- src/bookmark.py | 2 +- src/core/core.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bookmark.py b/src/bookmark.py index 0fdd1cde..65d633ce 100644 --- a/src/bookmark.py +++ b/src/bookmark.py @@ -117,7 +117,7 @@ def remove(value): def stanza_storage(method): """Generate a stanza with the conference elements.""" storage = Bookmarks() - for b in (b for bookmark in bookmark if b.method == method): + for b in (b for b in bookmark if b.method == method): storage.append(b.stanza()) return storage diff --git a/src/core/core.py b/src/core/core.py index 079a8515..c1813a7e 100644 --- a/src/core/core.py +++ b/src/core/core.py @@ -429,7 +429,7 @@ class Core(object): res = [] current = [] for char in char_list: - assert len(char) > 0 + assert char # Transform that stupid char into what we actually meant if char == '\x1f': char = '^/' -- cgit v1.2.3