fix generator and range

This commit is contained in:
Denis Fomin 2013-01-03 04:08:07 +04:00
parent 1a3d2fc179
commit ce1a785484
2 changed files with 2 additions and 2 deletions

View File

@ -951,7 +951,7 @@ def get_random_string_16():
"""
Create random string of length 16
"""
rng = range(65, 90)
rng = list(range(65, 90))
rng.extend(range(48, 57))
char_sequence = [chr(e) for e in rng]
from random import sample

View File

@ -1415,7 +1415,7 @@ class RosterWindow:
yield False
task = _draw_all_contacts(jids, account)
GObject.idle_add(task.next)
GObject.idle_add(next, task)
def _before_fill(self):
self.tree.freeze_child_notify()