def read_existing_artifacts(self, con):
        contents = con.get_file('.lektor/listing')
        if not contents:
            return {}, set()
        duplicates = set()
        rv = {}
        # Later records override earlier ones.  There can be duplicate
        # entries if the file was not compressed.
        for line in contents.splitlines():
            items = line.split('|')
            if len(items) == 2:
                artifact_name = items[0].decode('utf-8')
                if rv in artifact_name:
                    duplicates.add(artifact_name)
                rv[artifact_name] = items[1]
        return rv, duplicates
dataset/ETHPy150Open lektor/lektor/lektor/publisher.py/FtpPublisher.read_existing_artifacts/swapped operands of `in`