setup: oh, and if there is a utf-8 "BOM" then decode the file contents as utf-8 befor...
authorzooko <zooko@zooko.com>
Sun, 16 Jan 2011 17:57:41 +0000 (23:27 +0530)
committerzooko <zooko@zooko.com>
Sun, 16 Jan 2011 17:57:41 +0000 (23:27 +0530)
Ignore-this: 1c9843b51010f397b451221e2774d26

darcs-hash:eb197f870a35e036599d685de816d4df9af44522

zfec/setup.py

index 09de475599e9a44e051cb39aa4f896e25569d6f8..a000c82af0348cf4cb2738fa1e68b47185c5f971 100755 (executable)
@@ -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,