diff bitten/slave.py @ 890:df1d63c0dd22 0.6.x

0.6dev: Merged [968] from trunk.
author osimons
date Fri, 21 Jan 2011 08:14:54 +0000
parents 0a59d3e71870
children 60d0807334ec
line wrap: on
line diff
--- a/bitten/slave.py
+++ b/bitten/slave.py
@@ -512,7 +512,7 @@
         filename = os.path.basename(path)
         log.debug('Attaching file %s to %s...', attachment.attr['filename'],
                                                     resource_type)
-        f = open(path)
+        f = open(path, 'rb')
         try:
             data, content_type = encode_multipart_formdata({
                                 'file': (filename, f.read()),
Copyright (C) 2012-2017 Edgewall Software