2.5/2.6 RETURN_VALUE bug

This commit is contained in:
rocky
2016-07-08 12:02:28 -04:00
parent b640d42113
commit e020f8f9a9
5 changed files with 15 additions and 4 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,13 @@
# 2.5.6 decimal.py
# Bug on 2.5 and 2.6 by incorrectly changing opcode to
# RETURN_VALUE to psuedo op: RETURN_END_IF
def _formatparam(param, value=None, quote=True):
if value is not None and len(value) > 0:
if isinstance(value, tuple):
value = 'a'
if quote or param:
pass
else:
return '%s=%s' % (param, value)
else:
return param