'module' object has no attribute 'SIGWINCH' error on Bazaar-2.1.0-2 for OSX snow leopard

Martin (gzlist) gzlist at googlemail.com
Tue Mar 9 23:00:31 GMT 2010


I've a branch with a fix for this, but the code has been moved more
than once since it landed so repeated conflicts have got in the way of
getting it landed.

The change started as the below, but any similar alteration to the
conditional should work:

=== modified file 'bzrlib/osutils.py'
--- old/bzrlib/osutils.py	2009-12-17 22:16:59 +0000
+++ new/bzrlib/osutils.py	2009-12-17 22:17:42 +0000
@@ -1477,11 +1477,7 @@
     if width is not None:
         os.environ['COLUMNS'] = str(width)

-if sys.platform == 'win32':
-    # Martin (gz) mentioned WINDOW_BUFFER_SIZE_RECORD from ReadConsoleInput but
-    # I've no idea how to plug that in the current design -- vila 20091216
-    pass
-else:
+if os.name == "posix" and getattr(signal, "SIGWINCH", None) is not None:
     signal.signal(signal.SIGWINCH, _terminal_size_changed)



More information about the bazaar mailing list