From 48802ae4b63c5887208a044261aeaace7959be20 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Thu, 19 Jan 2012 02:00:09 +0100 Subject: [PATCH] TTYUI: Fix missing "time" import commit f2a94af5 introduced the use of time.sleep in ui/TTY.py without importing it. This caused a regression in 6.5.2, crashing OfflineIMap when in refresh mode. Signed-off-by: Sebastian Spaeth --- Changelog.draft.rst | 1 + offlineimap/ui/TTY.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Changelog.draft.rst b/Changelog.draft.rst index 21133ec..10967c3 100644 --- a/Changelog.draft.rst +++ b/Changelog.draft.rst @@ -22,3 +22,4 @@ Bug Fixes --------- * Fix python2.6 compatibility with the TTYUI backend (crash) +* Fix TTYUI regression from 6.5.2 in refresh loop (crash) diff --git a/offlineimap/ui/TTY.py b/offlineimap/ui/TTY.py index 862d7a4..efde74f 100644 --- a/offlineimap/ui/TTY.py +++ b/offlineimap/ui/TTY.py @@ -17,6 +17,7 @@ import logging import sys +import time from getpass import getpass from offlineimap import banner from offlineimap.ui.UIBase import UIBase