You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
13 lines
442 B
Python
13 lines
442 B
Python
# 2.6.9 calendar.py
|
|
# Bug in 2.6.9 was handling with as. Added rules
|
|
|
|
#
|
|
# withasstmt ::= expr setupwithas designator suite_stmts_opt
|
|
# POP_BLOCK LOAD_CONST COME_FROM WITH_CLEANUP END_FINALLY
|
|
# setupwithas ::= DUP_TOP LOAD_ATTR ROT_TWO LOAD_ATTR CALL_FUNCTION_0 STORE_FAST
|
|
# SETUP_FINALLY LOAD_FAST DELETE_FAST
|
|
|
|
def formatweekday(self):
|
|
with self as encoding:
|
|
return encoding
|