Skip to content

NameError: name 'basestring' is not defined #255

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

Closed
cavazquez opened this issue Dec 21, 2018 · 0 comments
Closed

NameError: name 'basestring' is not defined #255

cavazquez opened this issue Dec 21, 2018 · 0 comments

Comments

@cavazquez
Copy link

If you found a bug in python-ldap, or would request a new feature,
this is the place to let us know.

Please describe the issue and your environment here.


Issue description:

when I create SSSRequestControl(ordering_rules=['-uidNumber'] its fail because "basestring" in init method not exists in python3.

tips: set basestring = str

Steps to reproduce:

Operating system:

Python version: 3.7

python-ldap version: 3.1.0

mistotebe added a commit to mistotebe/python-ldap that referenced this issue Jan 28, 2019
mistotebe added a commit to mistotebe/python-ldap that referenced this issue Jan 28, 2019
mistotebe added a commit to mistotebe/python-ldap that referenced this issue Jan 28, 2019
encukou pushed a commit that referenced this issue Jan 30, 2019
* Python 3 has no basestring, use str instead
* Add a very minimal test to create a SSSRequestControl


Fixes: #255
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

No branches or pull requests

1 participant