diff options
author | mathieui <mathieui@mathieui.net> | 2016-07-07 19:51:53 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-07-07 19:51:53 +0200 |
commit | dae641412ebebdf7fd7364f07a577688a375715d (patch) | |
tree | 507318f8689689e546fbe17c7c8ede53d29767fa /poezio/windows/base_wins.py | |
parent | 3dcb04992dd6eb3f76f9d449ae7118da2c572d08 (diff) | |
download | poezio-dae641412ebebdf7fd7364f07a577688a375715d.tar.gz poezio-dae641412ebebdf7fd7364f07a577688a375715d.tar.bz2 poezio-dae641412ebebdf7fd7364f07a577688a375715d.tar.xz poezio-dae641412ebebdf7fd7364f07a577688a375715d.zip |
Fix a circular import introduced in 409b1513
It breaks python 3.4 which is touchy about them, https://bugs.python.org/issue17636
Diffstat (limited to 'poezio/windows/base_wins.py')
-rw-r--r-- | poezio/windows/base_wins.py | 5 |
1 files changed, 3 insertions, 2 deletions
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: |