From: zooko Date: Sun, 16 Jan 2011 17:57:41 +0000 (+0530) Subject: setup: oh, and if there is a utf-8 "BOM" then decode the file contents as utf-8 befor... X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/bcase/provisioning?a=commitdiff_plain;h=a891dd1d117a676d14fd5ca974644ea47fd10d4e;p=tahoe-lafs%2Fzfec.git setup: oh, and if there is a utf-8 "BOM" then decode the file contents as utf-8 before passing them to setup() Ignore-this: 1c9843b51010f397b451221e2774d26 darcs-hash:eb197f870a35e036599d685de816d4df9af44522 --- diff --git a/zfec/setup.py b/zfec/setup.py index 09de475..a000c82 100755 --- a/zfec/setup.py +++ b/zfec/setup.py @@ -143,7 +143,7 @@ data_files = [(doc_loc, data_fnames)] readmetext = open('README.rst').read() if readmetext[:3] == '\xef\xbb\xbf': # utf-8 "BOM" - readmetext = readmetext[3:] + readmetext = readmetext[3:].decode('utf-8') setup(name=PKG, version=verstr,