Commit f989ef9
committed
Use ast module instead of compiler module for parsing files.
This CL is part of the work getting GYP to run under Python 3.
The compiler module we used to parse GYP files was removed in
Python 3, so this CL switches to use the ast module instead,
which exists in both Python 2 and Python 3.
This change is not sufficient to run under Python 3; there's
more work remaining. Things should still work under Python 2
just fine.
This work is derived from [email protected]'s
original work in https://codereview.chromium.org/1454433002/.
Bug: gyp:36
Change-Id: I9a9835560491c3d8cd5426623484dc4a46af1d86
Reviewed-on: https://chromium-review.googlesource.com/c/1360352
Reviewed-by: Mark Mentovai <[email protected]>1 parent 9df93ee commit f989ef9
1 file changed
Lines changed: 18 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 5 | + | |
| 6 | + | |
13 | 7 | | |
14 | 8 | | |
15 | 9 | | |
| |||
183 | 177 | | |
184 | 178 | | |
185 | 179 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
196 | 187 | | |
197 | 188 | | |
198 | 189 | | |
199 | | - | |
200 | | - | |
| 190 | + | |
201 | 191 | | |
202 | | - | |
203 | | - | |
204 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
205 | 195 | | |
206 | 196 | | |
207 | 197 | | |
208 | 198 | | |
209 | 199 | | |
210 | 200 | | |
211 | | - | |
| 201 | + | |
212 | 202 | | |
213 | | - | |
214 | | - | |
| 203 | + | |
215 | 204 | | |
216 | | - | |
| 205 | + | |
217 | 206 | | |
218 | 207 | | |
219 | 208 | | |
220 | 209 | | |
221 | | - | |
222 | | - | |
| 210 | + | |
| 211 | + | |
223 | 212 | | |
224 | 213 | | |
225 | 214 | | |
| |||
0 commit comments