Changeset 2112

Show
Ignore:
Timestamp:
09/08/07 13:47:17 (1 year ago)
Author:
arj..@yirdis.nl
Message:

use types.FileType? instead of file, since it causes trouble with easy_install. Incremented version to0.12.1. Fix #74.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphor/trunk/gaphor/parser.py

    r2032 r2112  
    3535 
    3636import os 
     37import types 
    3738from xml.sax import handler 
    3839from cStringIO import InputType 
     
    321322 
    322323def parse_file(filename, parser): 
    323     """Parse the file filename with parser. 
     324    """ 
     325    Parse the file filename with parser. 
    324326    """ 
    325327    is_fd = True 
    326     if isinstance(filename, file): 
     328    if isinstance(filename, types.FileType): 
    327329        f = filename 
    328330        file_size = os.fstat(f.fileno())[6] 
  • gaphor/trunk/setup.py

    r2108 r2112  
    88""" 
    99 
    10 VERSION = '0.12.0
     10VERSION = '0.12.1
    1111 
    1212import os