def __repr__(self):
        state = 'open'
        if self.closed:
            state = 'closed'
        return '<%s file %r mode %r>' % (state, self.name, self.mode)
Constructor.
dataset/ETHPy150Open mockfs/mockfs/mockfs/storage.py/file.__repr__--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/protorpc/protorpc/messages.py/_DefinitionClass.__init__