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

'connect_with_options': apply 'ensure_bytes' to 'cd' and 'sco' #303

Closed
wants to merge 2 commits into from

Conversation

JohnJiang2017
Copy link

@JohnJiang2017 JohnJiang2017 commented Nov 15, 2023

In function 'connect_with_options', the code applies 'ensure_bytes' to parameter 'name', so a python 3 string value is allowed here.

The same is not done for attributes of parameters 'cd' or 'sco'.

When passing in 'cd' / 'sco' which's attributes are python 3 string values, I run into this error:
TypeError: Python 3 style string (unicode) found but not allowed here

Please kindly review this PR and let me know whether it is ok, thanks a lot!
Really appreciate the great work in this library!

@dsuch dsuch closed this Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants