def read_file(self, changeset_file):
if isfile(changeset_file):<EOL><INDENT>self.filename = changeset_file<EOL><DEDENT>else:<EOL><INDENT>self.path = mkdtemp()<EOL>self.filename = join(self.path, basename(changeset_file))<EOL>download(changeset_file, self.path)<EOL><DEDENT>self.xml = ET.fromstring(gzip.open(self.filename).read())<EOL>if not isfile(changeset_file):<EOL><INDENT>rmtree(self.path)<EOL><DEDENT>
Download the replication changeset file or read it directly from the
        filesystem (to test purposes).