Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
remove the weird character on pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Nov 15, 2014
1 parent 61a6906 commit 1f3cbb0
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1f3cbb0

Please sign in to comment.