/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Vincent Ladeuil
  • Date: 2009-12-16 10:51:23 UTC
  • mto: (4901.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4902.
  • Revision ID: v.ladeuil+lp@free.fr-20091216105123-lbk840bp40nn1wl1
Review feedback: import signal lazily and don't install SIGWINCH on windows.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
import stat
20
20
from stat import (S_ISREG, S_ISDIR, S_ISLNK, ST_MODE, ST_SIZE,
21
21
                  S_ISCHR, S_ISBLK, S_ISFIFO, S_ISSOCK)
22
 
import signal
23
22
import sys
24
23
import time
25
24
import warnings
40
39
from shutil import (
41
40
    rmtree,
42
41
    )
 
42
import signal
43
43
import subprocess
44
44
import tempfile
45
45
from tempfile import (
1424
1424
    width, height = _terminal_size(None, None)
1425
1425
    if width is not None:
1426
1426
        os.environ['COLUMNS'] = str(width)
1427
 
signal.signal(signal.SIGWINCH, _terminal_size_changed)
 
1427
 
 
1428
if sys.platform == 'win32':
 
1429
    # Martin (gz) mentioned WINDOW_BUFFER_SIZE_RECORD from ReadConsoleInput but
 
1430
    # I've no idea how to plug that in the current design -- vila 20091216
 
1431
    pass
 
1432
else:
 
1433
    signal.signal(signal.SIGWINCH, _terminal_size_changed)
1428
1434
 
1429
1435
 
1430
1436
def supports_executable():