BUGFIX: Python 3.x compability

Changed xrange -> range
Also added some documentation and changed the version number.
This commit is contained in:
Tim Mahrt
2016-02-18 14:17:49 +01:00
parent 102e8a7488
commit 38ebc7f3f9
3 changed files with 14 additions and 8 deletions
+10 -4
View File
@@ -3,6 +3,9 @@
pysle
---------
.. image:: https://img.shields.io/badge/license-MIT-blue.svg?
:target: http://opensource.org/licenses/MIT
Pronounced like 'p' + 'isle'.
An interface for the ILSEX (international speech lexicon) dictionary,
@@ -76,10 +79,13 @@ Requirements
Installation
================
From a command-line shell, navigate to the directory this is located in
and type::
If you on Windows, you can use the installer found here (check that it is up to date though)::
python setup.py install
`Windows installer <http://www.timmahrt.com/python_installers>`_
Otherwise, to manually install, after downloading, from a command-line shell, navigate to the directory containing setup.py and type::
python setup.py install
If python is not in your path, you'll need to enter the full path e.g.::
@@ -111,7 +117,7 @@ and another::
>> [["''"], ['n', '@'], ['th', 'r']]
Please see \\test for example usage
Please see \\examples for example usage
Citing pysle
+3 -3
View File
@@ -243,16 +243,16 @@ def alignPronunciations(pronI, pronA):
# Fill in any blanks such that the sequential items have the same
# index and the two strings are the same length
for x in xrange(len(sequenceIndexListA)):
for x in range(len(sequenceIndexListA)):
indexA = sequenceIndexListA[x]
indexI = sequenceIndexListI[x]
if indexA < indexI:
for x in xrange(indexI - indexA):
for x in range(indexI - indexA):
pronA.insert(indexA, "''")
sequenceIndexListA = [val + indexI - indexA
for val in sequenceIndexListA]
elif indexA > indexI:
for x in xrange(indexA - indexI):
for x in range(indexA - indexI):
pronI.insert(indexI, "''")
sequenceIndexListI = [val + indexA - indexI
for val in sequenceIndexListI]
+1 -1
View File
@@ -5,7 +5,7 @@ Created on Oct 15, 2014
'''
from distutils.core import setup
setup(name='pysle',
version='1.0.0',
version='1.2.0',
author='Tim Mahrt',
author_email='timmahrt@gmail.com',
package_dir={'pysle':'pysle'},