Changeset 2194:cd0c6c127954

Show
Ignore:
Timestamp:
01/31/10 15:04:17 (6 weeks ago)
Author:
Ronny Pfannschmidt <Ronny.Pfannschmidt@…>
Branch:
default
Tags:
tip
Message:

fix tty-dependance on vim sanity error detection

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pida/editors/vim/vim.py

    r2179 r2194  
    376376        try: 
    377377            import subprocess 
     378            import pty 
     379            master, slave = pty.openpty() 
    378380            p = subprocess.Popen( 
    379381                    ['gvim', '--version'], 
    380382                    stdout=subprocess.PIPE, 
     383                    stderr=slave, 
    381384                    ) 
    382385            data, _ = p.communicate() 
    383             if 'python' not in data: 
     386            if '+python' not in data: 
    384387                errors.extend([ 
    385388                    'gvim lacks python support',