[FIX] First fix of #i10: Using Floor division in getPoint()

This commit is contained in:
Benedek Racz 2019-10-31 10:14:29 +01:00
parent 3e9d3526e7
commit 9b298815c9
2 changed files with 6 additions and 2 deletions

View File

@ -39,11 +39,15 @@ after_test:
- python -m setup sdist
# Upload to pypi.
# More precisely. Upload pypi the master builds, and to test-pypi the test builds.
# More precisely. The master and release builds will be uploaded to pypi. Test branch will be
# uploaded to test-pypi the test builds.
# See more at https://stackoverflow.com/a/39155147/2506522
- IF %APPVEYOR_REPO_BRANCH%==master (
twine upload -r pypi dist\\wexpect*.tar.gz
)
- IF %APPVEYOR_REPO_TAG% (
twine upload -r pypi dist\\wexpect*.tar.gz
)
- IF %APPVEYOR_REPO_BRANCH%==test (
twine upload -r testpypi dist\\wexpect*.tar.gz
)

View File

@ -2165,7 +2165,7 @@ class Wtty:
"""Converts an offset to a point represented as a tuple."""
x = offset % self.__consSize[0]
y = offset / self.__consSize[0]
y = offset // self.__consSize[0]
return (x, y)
def getOffset(self, x, y):