From dae641412ebebdf7fd7364f07a577688a375715d Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 7 Jul 2016 19:51:53 +0200 Subject: Fix a circular import introduced in 409b1513 It breaks python 3.4 which is touchy about them, https://bugs.python.org/issue17636 --- poezio/windows/base_wins.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'poezio/windows/base_wins.py') diff --git a/poezio/windows/base_wins.py b/poezio/windows/base_wins.py index daab504b..fe24ba65 100644 --- a/poezio/windows/base_wins.py +++ b/poezio/windows/base_wins.py @@ -7,13 +7,14 @@ the text window, the roster window, etc. A Tab (see the poezio.tabs module) is composed of multiple Windows """ +TAB_WIN = None + import logging log = logging.getLogger(__name__) import curses import string -from poezio import windows from poezio.theming import to_curses_attr, read_tuple FORMAT_CHAR = '\x19' @@ -43,7 +44,7 @@ class Win(object): return self.height, self.width, self.x, self.y = height, width, x, y try: - self._win = windows.TAB_WIN.derwin(height, width, y, x) + self._win = TAB_WIN.derwin(height, width, y, x) except: log.debug('DEBUG: mvwin returned ERR. Please investigate') if self._win is None: -- cgit v1.2.3