def getPycHeader(self):
        try:
            if getattr(self,'nosourcefile',0): raise ValueError
            mtime = os.path.getmtime(self.filename)
        except:
            import time
            mtime = time.time()
        mtime = struct.pack('<i', mtime)
        return self.MAGIC + mtime
dataset/ETHPy150Open CGATOxford/cgat/obsolete/preppy.py/PreppyParser.getPycHeader/original