Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove deprecated non-integer input to randrange() #33

Conversation

dragondive
Copy link

Replace float division with integer division in create_user() to ensure integer input to randint(), which internally calls randrange(). Non-integer inputs to randrange() has been deprecated in Python 3.10, and will be removed in a future version.

This change also addresses the corresponding python warnings that would appear in the client code that uses the create_user() method.

Replace float division with integer division in `create_user()` to
ensure integer input to `randint()`, which internally calls
`randrange()`. Non-integer inputs to `randrange()` has been
deprecated in Python 3.10, and will be removed in a future version.

This change also addresses the corresponding python warnings that
would appear in the client code that uses the `create_user()` method.
@mpasternak
Copy link
Member

mpasternak commented Jun 19, 2024

Commited, thanks.

@mpasternak mpasternak merged commit 1f515d3 into iplweb:develop Jun 19, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants