--- mirrorselect/main.py 2017-02-19 18:54:02.000000000 +0000 +++ mirrorselect/main.py 2017-02-19 18:53:22.303830709 +0000 @@ -112,14 +112,14 @@ hosts = [x.decode('utf-8') for x in hosts] if var == "sync-uri" and out: - mirror_string = '%s = %s' % (var, ' '.join(hosts)) + mirror_string = '%s = %s' % (var, ' '.join(map(str, hosts))) else: - mirror_string = '%s="%s"' % (var, ' '.join(hosts)) + mirror_string = '%s="%s"' % (var, ' '.join(map(str, hosts))) if out: self.write_to_output(mirror_string) elif var == "sync-uri": - write_repos_conf(self.output, config_path, var, ' '.join(hosts)) + write_repos_conf(self.output, config_path, var, ' '.join(map(str, hosts))) else: write_make_conf(self.output, config_path, var, mirror_string)