-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Use collections.abc.Iterable
instead of collection.Iterable
#58716
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
Use collections.abc.Iterable
instead of collection.Iterable
#58716
Conversation
The latter is no longer present in Python 3.10+. Addresses swiftlang#58714
@swift-ci please smoke test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems that this was moved in 3.3.
@swift-ci please smoke test Linux |
1 similar comment
@swift-ci please smoke test Linux |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update wellCan you agree?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤙
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utils/build_swift/tests/build_swift/test_shell.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi 👋🏻
@@ -206,7 +206,7 @@ def quote(command): | |||
if isinstance(command, (str,)): | |||
return _quote(command) | |||
|
|||
if isinstance(command, collections.Iterable): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latter is no longer present in Python 3.10+.
Addresses #58714