You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
12 lines
391 B
Python
12 lines
391 B
Python
# Python 2.6 has a truly weird way of handling "with" here.
|
|
# added rule for 2.6
|
|
# setupwith ::= DUP_TOP LOAD_ATTR ROT_TWO LOAD_ATTR CALL_FUNCTION_0 POP_TOP
|
|
|
|
import sys
|
|
from warnings import catch_warnings
|
|
with catch_warnings():
|
|
if sys.py3kwarning:
|
|
sys.filterwarnings("ignore", ".*mimetools has been removed",
|
|
DeprecationWarning)
|
|
import mimetools
|