aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2013-10-16 23:57:04 -0700
committerBrian Dolbec <dolsen@gentoo.org>2013-10-16 23:57:04 -0700
commit168e7bf0f5ed0adf5acbf09bdd6c4181f5bcdcb8 (patch)
tree2fc6e1eb5b931f2f0762fc2900e714fc6d5805a2
parentAdd repos.conf support. (diff)
downloadmirrorselect-168e7bf0f5ed0adf5acbf09bdd6c4181f5bcdcb8.tar.gz
mirrorselect-168e7bf0f5ed0adf5acbf09bdd6c4181f5bcdcb8.tar.bz2
mirrorselect-168e7bf0f5ed0adf5acbf09bdd6c4181f5bcdcb8.zip
Fix py3 compatibilty.
-rw-r--r--mirrorselect/configs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mirrorselect/configs.py b/mirrorselect/configs.py
index 3534b72..8a83287 100644
--- a/mirrorselect/configs.py
+++ b/mirrorselect/configs.py
@@ -105,7 +105,7 @@ def write_repos_conf(output, config_path, var, value):
config.read(config_path)
if config.has_option('gentoo', var):
config.set('gentoo', var, value)
- with open(config_path, 'wb') as configfile:
+ with open(config_path, 'w') as configfile:
config.write(configfile)
else:
output.print_err("write_repos_conf(): Failed to find section 'gentoo',"