Commit 11ed07a
authored
chore: relax suffix cond
This came up reviewing some Exception Replay snapshots where the paths
took the form:
>
/usr/local/runfiles/pypi_linux_x86_64_parsimonious/site-packages/parsimonious/expressions.py
Rather than add another case for this, we can remove the suffix check
since we're looping over `path.parents` anyways.
This should improve the third-party detection for more unconvential
build environments beyond bazel.site-packages search for modules (#15123)1 parent a139e88 commit 11ed07a
2 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
0 commit comments