From f0016cf154517681be0ea35c30f7be18aa53d651 Mon Sep 17 00:00:00 2001 From: Sergio Pascual Date: Dec 05 2014 09:32:50 +0000 Subject: Patch for configobj added --- diff --git a/python-astropy-configobj5.patch b/python-astropy-configobj5.patch new file mode 100644 index 0000000..24a8d0a --- /dev/null +++ b/python-astropy-configobj5.patch @@ -0,0 +1,12 @@ +diff -ur astropy-0.4.2/astropy/config/tests/test_configs.py astropy-0.4.2.conf/astropy/config/tests/test_configs.py +--- astropy-0.4.2/astropy/config/tests/test_configs.py 2014-12-05 00:03:10.533260470 +0100 ++++ astropy-0.4.2.conf/astropy/config/tests/test_configs.py 2014-12-05 00:05:13.581269048 +0100 +@@ -107,7 +107,7 @@ + while apycfg.parent is not apycfg: + apycfg = apycfg.parent + f = tmpdir.join('astropy.cfg') +- with io.open(f.strpath, 'w', encoding='utf-8') as fd: ++ with io.open(f.strpath, 'wb') as fd: + apycfg.write(fd) + with io.open(f.strpath, 'rU', encoding='utf-8') as fd: + lns = [x.strip() for x in f.readlines()]