summaryrefslogtreecommitdiff
path: root/distutils2/command/install_distinfo.py
diff options
context:
space:
mode:
author?ric Araujo <merwok@netwok.org>2011-11-11 11:41:17 +0100
committer?ric Araujo <merwok@netwok.org>2011-11-11 11:41:17 +0100
commitb3a40f65e1bed62d6b41d7b817c6c9536bccb47e (patch)
tree444a2e2ee019232150e0eacc4210b549f42bff27 /distutils2/command/install_distinfo.py
parent409561aecceb03109eef0bd02a3639cf1d3bb896 (diff)
downloaddisutils2-b3a40f65e1bed62d6b41d7b817c6c9536bccb47e.tar.gz
Fix writing of the RESOURCES file (#12386).
This was not broken in d2 because codecs.open allows 'b' in mode.
Diffstat (limited to 'distutils2/command/install_distinfo.py')
-rw-r--r--distutils2/command/install_distinfo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/distutils2/command/install_distinfo.py b/distutils2/command/install_distinfo.py
index 82e099d..fcbd774 100644
--- a/distutils2/command/install_distinfo.py
+++ b/distutils2/command/install_distinfo.py
@@ -111,7 +111,7 @@ class install_distinfo(Command):
'RESOURCES')
logger.info('creating %s', resources_path)
if not self.dry_run:
- f = open(resources_path, 'wb')
+ f = open(resources_path, 'w')
try:
writer = csv.writer(f, delimiter=',',
lineterminator='\n',