File tree Expand file tree Collapse file tree 3 files changed +11
-16
lines changed
Expand file tree Collapse file tree 3 files changed +11
-16
lines changed Original file line number Diff line number Diff line change 1212Copyright (C) 2015, 2016 Rocky Bernstein <rb@dustyfeet.com>.
1313"""
1414
15- classifiers = ['Development Status :: 4 - Beta ' ,
15+ classifiers = ['Development Status :: 5 - Production/Stable ' ,
1616 'Intended Audience :: Developers' ,
1717 'Operating System :: OS Independent' ,
1818 'Programming Language :: Python' ,
3737 'pydisassemble=uncompyle6.bin.pydisassemble:main' ,
3838 ]}
3939ftp_url = None
40- install_requires = ['spark-parser >= 1.5.0 , < 1.6.0' ,
40+ install_requires = ['spark-parser >= 1.5.1 , < 1.6.0' ,
4141 'xdis >= 3.2.3, < 3.3.0' ]
4242license = 'MIT'
4343mailing_list = 'python-debugger@googlegroups.com'
Original file line number Diff line number Diff line change @@ -157,8 +157,7 @@ def p_stmt(self, args):
157157 """
158158 passstmt ::=
159159
160- _stmts ::= _stmts stmt
161- _stmts ::= stmt
160+ _stmts ::= stmt+
162161
163162 # statements with continue
164163 c_stmts ::= _stmts
@@ -270,8 +269,7 @@ def p_jump(self, args):
270269
271270 # Zero or one COME_FROM
272271 # And/or expressions have this
273- come_from_opt ::= COME_FROM
274- come_from_opt ::=
272+ come_from_opt ::= COME_FROM?
275273 """
276274
277275 def p_dictcomp (self , args ):
Original file line number Diff line number Diff line change @@ -25,20 +25,18 @@ def __init__(self, debug_parser=PARSER_DEFAULT_DEBUG):
2525 self .new_rules = set ()
2626
2727 def p_print2 (self , args ):
28- '''
28+ """
2929 stmt ::= print_items_stmt
3030 stmt ::= print_nl
3131 stmt ::= print_items_nl_stmt
3232
3333 print_items_stmt ::= expr PRINT_ITEM print_items_opt
3434 print_items_nl_stmt ::= expr PRINT_ITEM print_items_opt PRINT_NEWLINE_CONT
35- print_items_opt ::= print_items
36- print_items_opt ::=
37- print_items ::= print_items print_item
38- print_items ::= print_item
39- print_item ::= expr PRINT_ITEM_CONT
40- print_nl ::= PRINT_NEWLINE
41- '''
35+ print_items_opt ::= print_items?
36+ print_items ::= print_item+
37+ print_item ::= expr PRINT_ITEM_CONT
38+ print_nl ::= PRINT_NEWLINE
39+ """
4240
4341 def p_stmt2 (self , args ):
4442 """
@@ -169,8 +167,7 @@ def p_grammar(self, args):
169167 try_middle ::= jmp_abs COME_FROM except_stmts
170168 END_FINALLY
171169
172- except_stmts ::= except_stmts except_stmt
173- except_stmts ::= except_stmt
170+ except_stmts ::= except_stmt+
174171
175172 except_stmt ::= except_cond1 except_suite
176173 except_stmt ::= except
You can’t perform that action at this time.
0 commit comments