Project

General

Profile

« Previous | Next » 

Revision 4564b8d3

Added by Jérôme Schneider almost 11 years ago

setup.py: close file not a string

View differences:

setup.py
70 70
    if os.path.exists('VERSION'):
71 71
        version_file = open('VERSION', 'r')
72 72
        version = version_file.read()
73
        version.close()
73
        version_file.close()
74 74
        return version
75 75
    for d in glob.glob('*'):
76 76
        if not os.path.isdir(d):

Also available in: Unified diff