Abhilash Raj has proposed merging lp:~raj-abhilash1/mailman/mailman_fix into 
lp:mailman.

Requested reviews:
  Mailman Coders (mailman-coders)

For more details, see:
https://code.launchpad.net/~raj-abhilash1/mailman/mailman_fix/+merge/252385

Fix the error causing read error on MAILMAN_EXTRA_TESTING_CFG (for testing 
against postgres)
-- 
Your team Mailman Coders is requested to review the proposed merge of 
lp:~raj-abhilash1/mailman/mailman_fix into lp:mailman.
=== modified file 'src/mailman/core/initialize.py'
--- src/mailman/core/initialize.py	2015-01-05 01:22:39 +0000
+++ src/mailman/core/initialize.py	2015-03-09 23:33:44 +0000
@@ -130,8 +130,8 @@
     # PostgreSQL.
     extra_cfg_path = os.environ.get('MAILMAN_EXTRA_TESTING_CFG')
     if extra_cfg_path is not None:
-        with open(extra_cfg_path) as fp:
-            extra_cfg = fp.read().decode('utf-8')
+        with open(extra_cfg_path, 'r', encoding='utf-8') as fp:
+            extra_cfg = fp.read()
         mailman.config.config.push('extra testing config', extra_cfg)
 
 

_______________________________________________
Mailman-coders mailing list
[email protected]
https://mail.python.org/mailman/listinfo/mailman-coders

Reply via email to