mirror of
https://github.com/clearml/wexpect-venv
synced 2025-02-07 13:30:56 +00:00
[FIX] First fix of #i10: Using Floor division in getPoint()
This commit is contained in:
parent
3e9d3526e7
commit
9b298815c9
@ -39,11 +39,15 @@ after_test:
|
|||||||
- python -m setup sdist
|
- python -m setup sdist
|
||||||
|
|
||||||
# Upload to pypi.
|
# 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
|
# See more at https://stackoverflow.com/a/39155147/2506522
|
||||||
- IF %APPVEYOR_REPO_BRANCH%==master (
|
- IF %APPVEYOR_REPO_BRANCH%==master (
|
||||||
twine upload -r pypi dist\\wexpect*.tar.gz
|
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 (
|
- IF %APPVEYOR_REPO_BRANCH%==test (
|
||||||
twine upload -r testpypi dist\\wexpect*.tar.gz
|
twine upload -r testpypi dist\\wexpect*.tar.gz
|
||||||
)
|
)
|
||||||
|
@ -2165,7 +2165,7 @@ class Wtty:
|
|||||||
"""Converts an offset to a point represented as a tuple."""
|
"""Converts an offset to a point represented as a tuple."""
|
||||||
|
|
||||||
x = offset % self.__consSize[0]
|
x = offset % self.__consSize[0]
|
||||||
y = offset / self.__consSize[0]
|
y = offset // self.__consSize[0]
|
||||||
return (x, y)
|
return (x, y)
|
||||||
|
|
||||||
def getOffset(self, x, y):
|
def getOffset(self, x, y):
|
||||||
|
Loading…
Reference in New Issue
Block a user