Changeset 2194:cd0c6c127954
- Timestamp:
- 01/31/10 15:04:17 (7 months ago)
- Author:
- Ronny Pfannschmidt <Ronny.Pfannschmidt@…>
- Branch:
- default
- Children:
- 2244:cdf6825b0260, 2339:7e5e7ea4f2ef
- Message:
-
fix tty-dependance on vim sanity error detection
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r2179
|
r2194
|
|
| 376 | 376 | try: |
| 377 | 377 | import subprocess |
| | 378 | import pty |
| | 379 | master, slave = pty.openpty() |
| 378 | 380 | p = subprocess.Popen( |
| 379 | 381 | ['gvim', '--version'], |
| 380 | 382 | stdout=subprocess.PIPE, |
| | 383 | stderr=slave, |
| 381 | 384 | ) |
| 382 | 385 | data, _ = p.communicate() |
| 383 | | if 'python' not in data: |
| | 386 | if '+python' not in data: |
| 384 | 387 | errors.extend([ |
| 385 | 388 | 'gvim lacks python support', |