def checksum(self, file): import binascii preprocess = self.compiler.preprocess_source(file) return binascii.crc32(preprocess.encode('utf-8'))