|
79 | 79 | }, |
80 | 80 | }, |
81 | 81 | }, |
82 | | - { '@type': "python:Import", |
83 | | - '@token': "import", |
84 | | - '@role': [Declaration, Import, Statement], |
| 82 | + { '@type': "uast:RuntimeImport", |
85 | 83 | '@pos': { '@type': "uast:Positions", |
86 | 84 | start: { '@type': "uast:Position", |
87 | 85 | offset: 1206, |
88 | 86 | line: 37, |
89 | 87 | col: 1, |
90 | 88 | }, |
91 | 89 | }, |
92 | | - names: { '@type': "python:ImportFrom.names", |
93 | | - '@role': [Identifier, Import, Incomplete, Pathname], |
94 | | - 'name_list': [ |
95 | | - { '@type': "uast:RuntimeImport", |
96 | | - All: false, |
97 | | - Names: ~, |
98 | | - Path: { '@type': "uast:Identifier", |
99 | | - '@pos': { '@type': "uast:Positions", |
100 | | - }, |
101 | | - Name: "collections", |
102 | | - }, |
103 | | - Target: ~, |
104 | | - }, |
105 | | - ], |
106 | | - }, |
107 | | - 'noops_previous': { '@type': "python:PreviousNoops", |
108 | | - '@role': [Noop], |
| 90 | + All: false, |
| 91 | + Names: ~, |
| 92 | + Path: { '@type': "uast:Identifier", |
109 | 93 | '@pos': { '@type': "uast:Positions", |
110 | | - start: { '@type': "uast:Position", |
111 | | - offset: 1186, |
112 | | - line: 35, |
113 | | - col: 1, |
114 | | - }, |
115 | | - end: { '@type': "uast:Position", |
116 | | - offset: 1204, |
117 | | - line: 36, |
118 | | - col: 18, |
119 | | - }, |
120 | 94 | }, |
121 | | - lines: [ |
122 | | - { '@type': "uast:Comment", |
123 | | - '@role': [Noop], |
124 | | - '@pos': { '@type': "uast:Positions", |
125 | | - start: { '@type': "uast:Position", |
126 | | - offset: 1187, |
127 | | - line: 36, |
128 | | - col: 1, |
129 | | - }, |
130 | | - }, |
131 | | - Block: false, |
132 | | - Prefix: " ", |
133 | | - Suffix: "\n", |
134 | | - Tab: "", |
135 | | - Text: "Standard library", |
136 | | - }, |
137 | | - ], |
| 95 | + Name: "collections", |
138 | 96 | }, |
| 97 | + Target: ~, |
139 | 98 | }, |
140 | | - { '@type': "python:Import", |
141 | | - '@token': "import", |
142 | | - '@role': [Declaration, Import, Statement], |
| 99 | + { '@type': "uast:RuntimeImport", |
143 | 100 | '@pos': { '@type': "uast:Positions", |
144 | 101 | start: { '@type': "uast:Position", |
145 | 102 | offset: 1225, |
146 | 103 | line: 38, |
147 | 104 | col: 1, |
148 | 105 | }, |
149 | 106 | }, |
150 | | - names: { '@type': "python:ImportFrom.names", |
151 | | - '@role': [Identifier, Import, Incomplete, Pathname], |
152 | | - 'name_list': [ |
153 | | - { '@type': "uast:RuntimeImport", |
154 | | - All: false, |
155 | | - Names: ~, |
156 | | - Path: { '@type': "uast:Identifier", |
157 | | - '@pos': { '@type': "uast:Positions", |
158 | | - }, |
159 | | - Name: "logging", |
160 | | - }, |
161 | | - Target: ~, |
162 | | - }, |
163 | | - ], |
| 107 | + All: false, |
| 108 | + Names: ~, |
| 109 | + Path: { '@type': "uast:Identifier", |
| 110 | + '@pos': { '@type': "uast:Positions", |
| 111 | + }, |
| 112 | + Name: "logging", |
164 | 113 | }, |
| 114 | + Target: ~, |
165 | 115 | }, |
166 | | - { '@type': "python:Import", |
167 | | - '@token': "import", |
168 | | - '@role': [Declaration, Import, Statement], |
| 116 | + { '@type': "uast:RuntimeImport", |
169 | 117 | '@pos': { '@type': "uast:Positions", |
170 | 118 | start: { '@type': "uast:Position", |
171 | 119 | offset: 1240, |
172 | 120 | line: 39, |
173 | 121 | col: 1, |
174 | 122 | }, |
175 | 123 | }, |
176 | | - names: { '@type': "python:ImportFrom.names", |
177 | | - '@role': [Identifier, Import, Incomplete, Pathname], |
178 | | - 'name_list': [ |
179 | | - { '@type': "uast:RuntimeImport", |
180 | | - All: false, |
181 | | - Names: ~, |
182 | | - Path: { '@type': "uast:Identifier", |
183 | | - '@pos': { '@type': "uast:Positions", |
184 | | - }, |
185 | | - Name: "os", |
186 | | - }, |
187 | | - Target: ~, |
188 | | - }, |
189 | | - ], |
| 124 | + All: false, |
| 125 | + Names: ~, |
| 126 | + Path: { '@type': "uast:Identifier", |
| 127 | + '@pos': { '@type': "uast:Positions", |
| 128 | + }, |
| 129 | + Name: "os", |
190 | 130 | }, |
| 131 | + Target: ~, |
191 | 132 | }, |
192 | | - { '@type': "python:Import", |
193 | | - '@token': "import", |
194 | | - '@role': [Declaration, Import, Statement], |
| 133 | + { '@type': "uast:RuntimeImport", |
195 | 134 | '@pos': { '@type': "uast:Positions", |
196 | 135 | start: { '@type': "uast:Position", |
197 | 136 | offset: 1250, |
198 | 137 | line: 40, |
199 | 138 | col: 1, |
200 | 139 | }, |
201 | 140 | }, |
202 | | - names: { '@type': "python:ImportFrom.names", |
203 | | - '@role': [Identifier, Import, Incomplete, Pathname], |
204 | | - 'name_list': [ |
205 | | - { '@type': "uast:RuntimeImport", |
206 | | - All: false, |
207 | | - Names: ~, |
208 | | - Path: { '@type': "uast:Identifier", |
209 | | - '@pos': { '@type': "uast:Positions", |
210 | | - }, |
211 | | - Name: "struct", |
212 | | - }, |
213 | | - Target: ~, |
214 | | - }, |
215 | | - ], |
| 141 | + All: false, |
| 142 | + Names: ~, |
| 143 | + Path: { '@type': "uast:Identifier", |
| 144 | + '@pos': { '@type': "uast:Positions", |
| 145 | + }, |
| 146 | + Name: "struct", |
216 | 147 | }, |
| 148 | + Target: ~, |
217 | 149 | }, |
218 | | - { '@type': "python:Import", |
219 | | - '@token': "import", |
220 | | - '@role': [Declaration, Import, Statement], |
| 150 | + { '@type': "uast:RuntimeImport", |
221 | 151 | '@pos': { '@type': "uast:Positions", |
222 | 152 | start: { '@type': "uast:Position", |
223 | 153 | offset: 1264, |
224 | 154 | line: 41, |
225 | 155 | col: 1, |
226 | 156 | }, |
227 | 157 | }, |
228 | | - names: { '@type': "python:ImportFrom.names", |
229 | | - '@role': [Identifier, Import, Incomplete, Pathname], |
230 | | - 'name_list': [ |
231 | | - { '@type': "uast:RuntimeImport", |
232 | | - All: false, |
233 | | - Names: ~, |
234 | | - Path: { '@type': "uast:Identifier", |
235 | | - '@pos': { '@type': "uast:Positions", |
236 | | - }, |
237 | | - Name: "sys", |
238 | | - }, |
239 | | - Target: ~, |
240 | | - }, |
241 | | - ], |
| 158 | + All: false, |
| 159 | + Names: ~, |
| 160 | + Path: { '@type': "uast:Identifier", |
| 161 | + '@pos': { '@type': "uast:Positions", |
| 162 | + }, |
| 163 | + Name: "sys", |
242 | 164 | }, |
| 165 | + Target: ~, |
243 | 166 | }, |
244 | 167 | { '@type': "python:Try", |
245 | 168 | '@token': "try", |
|
0 commit comments