Skip to content

chore: remove ldap.async module - #679

Open
spaceone wants to merge 1 commit into
mainfrom
chore/remove-async
Open

spaceone wants to merge 1 commit into
mainfrom
chore/remove-async

Conversation

@spaceone

Copy link
Copy Markdown
Contributor

incompatible with Python 3 syntax. Python 2 support was removed.

>>> import ldap
>>> import ldap.async
  File "<python-input-1>", line 1
    import ldap.async
                ^^^^^
SyntaxError: invalid syntax

incompatible with Python 3 syntax. Python 2 support was removed.

```pycon
>>> import ldap
>>> import ldap.async
  File "<python-input-1>", line 1
    import ldap.async
                ^^^^^
SyntaxError: invalid syntax
```

@droideck droideck left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I​'d keep ldap.async through 3.x and remove it in 4.0. Although the documented deprecation window has passed, this still removes an existing import path, and the compatibility shim costs little to retain. ​So I'd make the 4.0 removal explicit in the docs.

@spaceone

Copy link
Copy Markdown
Contributor Author

I would be fine with it if I see that it could actually be used. But it can't → SyntaxError.
Do you expect anybody to have changed that code to __import__('ldap.async') instead of just import ldap.asyncsearch?

@spaceone spaceone added this to the 3.5.0 milestone Oct 25, 2026
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