mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
Clarify filter by flipping the boolean logic
This commit is contained in:
@@ -84,8 +84,10 @@ class TestSetupReadline(unittest.TestCase):
|
|||||||
]
|
]
|
||||||
difference = {
|
difference = {
|
||||||
x for x in difference
|
x for x in difference
|
||||||
if all(not x.startswith('from os import ' + prefix)
|
if not any(
|
||||||
for prefix in ACCEPTED_DIFFERENCE_PREFIXES)
|
x.startswith('from os import ' + prefix)
|
||||||
|
for prefix in ACCEPTED_DIFFERENCE_PREFIXES
|
||||||
|
)
|
||||||
}
|
}
|
||||||
# There are quite a few differences, because both Windows and Linux
|
# There are quite a few differences, because both Windows and Linux
|
||||||
# (posix and nt) libraries are included.
|
# (posix and nt) libraries are included.
|
||||||
|
|||||||
Reference in New Issue
Block a user