Changeset 6823 for branches/numpy/anuga


Ignore:
Timestamp:
Apr 17, 2009, 11:05:18 AM (16 years ago)
Author:
rwilson
Message:

Fix problem with 'fcntl' module under python 2.4.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/numpy/anuga/utilities/terminal_width.py

    r6306 r6823  
    4242            x = fcntl.ioctl(1, termios.TIOCGWINSZ, s)
    4343            width = struct.unpack('HHHH', x)[1]
    44         except IOError:
     44        except (IOError, ImportError):
    4545            pass
    4646        if width <= 0:
Note: See TracChangeset for help on using the changeset viewer.