[py-svn] commit/py: hpk42: read file in text mode (should fix a test failure on python31/windows)

Bitbucket commits-noreply at bitbucket.org
Thu Jul 7 20:17:51 CEST 2011


1 new changeset in py:

http://bitbucket.org/hpk42/py/changeset/a784b2eae334/
changeset:   a784b2eae334
user:        hpk42
date:        2011-07-07 20:17:42
summary:     read file in text mode (should fix a test failure on python31/windows)
affected #:  1 file (1 byte)

--- a/py/_builtin.py	Thu Jul 07 18:55:55 2011 +0200
+++ b/py/_builtin.py	Thu Jul 07 20:17:42 2011 +0200
@@ -142,7 +142,7 @@
             del back
         elif locs is None:
             locs = globs
-        fp = open(fn, "rb")
+        fp = open(fn, "r")
         try:
             source = fp.read()
         finally:

Repository URL: https://bitbucket.org/hpk42/py/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the pytest-commit mailing list