Skip to content
Permalink
Browse files

remove the weird character on pypi

  • Loading branch information...
sdpython committed Nov 15, 2014
1 parent 61a6906 commit 1f3cbb01a9e478dc47ea852b0b3aa27472754af1
Showing with 10 additions and 3 deletions.
  1. +10 −3 setup.py
@@ -37,7 +37,7 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
# OF THE POSSIBILITY OF SUCH DAMAGE.

import sys,os,io
import sys,os
from distutils.core import setup
from setuptools import find_packages

@@ -86,10 +86,17 @@
project_var_name + ".languages": ["*.g4", "*.tokens"], }

if os.path.exists(readme):
with io.open(readme, encoding='utf-8') as f : long_description = f.read()
try:
with open(readme, "r", encoding='utf-8') as f : long_description = f.read()
long_description = long_description.replace("\ufeff","")
except :
try:
with open(readme, "r") as f : long_description = f.read()
except:
long_description = ""
else:
long_description = ""

if "--verbose" in sys.argv :
print ("---------------------------------")
print ("package_dir =",package_dir)

0 comments on commit 1f3cbb0

Please sign in to comment.
You can’t perform that action at this time.