From 1a4ddaecc732c207fa69890db87ac4b47da867b8 Mon Sep 17 00:00:00 2001 From: Anthony Baxter Date: Tue, 31 Aug 2004 10:07:13 +0000 Subject: SF patch #1007189, multi-line imports, for instance: "from blah import (foo, bar baz, bongo)" --- Lib/symbol.py | 102 ++++++++++++++++++++++++++++++---------------------------- 1 file changed, 53 insertions(+), 49 deletions(-) (limited to 'Lib/symbol.py') diff --git a/Lib/symbol.py b/Lib/symbol.py index cb57208005..eaf5a2581d 100755 --- a/Lib/symbol.py +++ b/Lib/symbol.py @@ -35,55 +35,59 @@ return_stmt = 277 yield_stmt = 278 raise_stmt = 279 import_stmt = 280 -import_as_name = 281 -dotted_as_name = 282 -dotted_name = 283 -global_stmt = 284 -exec_stmt = 285 -assert_stmt = 286 -compound_stmt = 287 -if_stmt = 288 -while_stmt = 289 -for_stmt = 290 -try_stmt = 291 -except_clause = 292 -suite = 293 -test = 294 -and_test = 295 -not_test = 296 -comparison = 297 -comp_op = 298 -expr = 299 -xor_expr = 300 -and_expr = 301 -shift_expr = 302 -arith_expr = 303 -term = 304 -factor = 305 -power = 306 -atom = 307 -listmaker = 308 -testlist_gexp = 309 -lambdef = 310 -trailer = 311 -subscriptlist = 312 -subscript = 313 -sliceop = 314 -exprlist = 315 -testlist = 316 -testlist_safe = 317 -dictmaker = 318 -classdef = 319 -arglist = 320 -argument = 321 -list_iter = 322 -list_for = 323 -list_if = 324 -gen_iter = 325 -gen_for = 326 -gen_if = 327 -testlist1 = 328 -encoding_decl = 329 +import_name = 281 +import_from = 282 +import_as_name = 283 +dotted_as_name = 284 +import_as_names = 285 +dotted_as_names = 286 +dotted_name = 287 +global_stmt = 288 +exec_stmt = 289 +assert_stmt = 290 +compound_stmt = 291 +if_stmt = 292 +while_stmt = 293 +for_stmt = 294 +try_stmt = 295 +except_clause = 296 +suite = 297 +test = 298 +and_test = 299 +not_test = 300 +comparison = 301 +comp_op = 302 +expr = 303 +xor_expr = 304 +and_expr = 305 +shift_expr = 306 +arith_expr = 307 +term = 308 +factor = 309 +power = 310 +atom = 311 +listmaker = 312 +testlist_gexp = 313 +lambdef = 314 +trailer = 315 +subscriptlist = 316 +subscript = 317 +sliceop = 318 +exprlist = 319 +testlist = 320 +testlist_safe = 321 +dictmaker = 322 +classdef = 323 +arglist = 324 +argument = 325 +list_iter = 326 +list_for = 327 +list_if = 328 +gen_iter = 329 +gen_for = 330 +gen_if = 331 +testlist1 = 332 +encoding_decl = 333 #--end constants-- sym_name = {} -- cgit v1.2.1