You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 08:34:46 +08:00
10 lines
297 B
Python
10 lines
297 B
Python
# Python 2.6
|
|
# In contrast to Python 2.7 there might be no "COME_FROM" so we add rule:
|
|
# ret_or ::= expr JUMP_IF_TRUE expr
|
|
# where Python 2.7 has
|
|
# ret_or ::= expr JUMP_IF_TRUE expr COME_FROM
|
|
|
|
class BufferedIncrementalEncoder(object):
|
|
def getstate(self):
|
|
return self.buffer or 0
|