detected old-style Python 2.4 class better

This commit is contained in:
rocky
2017-11-13 10:57:08 -05:00
parent 35e4e03468
commit 69847dbeec
3 changed files with 14 additions and 4 deletions

View File

@@ -1,6 +1,16 @@
2017-11-13 rocky <rb@dustyfeet.com>
* uncompyle6/version.py: Get ready for release 2.13.3
* uncompyle6/parser.py, uncompyle6/semantics/pysource.py: detected
old-style Python 2.4 class better
2017-11-13 rocky <rb@dustyfeet.com>
* admin-tools/check-older-versions.sh: Administrivia
2017-11-13 rocky <rb@dustyfeet.com>
* ChangeLog, NEWS, uncompyle6/version.py: Get ready for release
2.13.3
2017-11-12 rocky <rb@dustyfeet.com>

View File

@@ -3,7 +3,7 @@
# Copyright (c) 2000-2002 by hartmut Goebel <h.goebel@crazy-compilers.com>
# Copyright (c) 1999 John Aycock
"""
Common uncompyle parser routines.
Common uncompyle6 parser routines.
"""
from __future__ import print_function

View File

@@ -1507,7 +1507,7 @@ class SourceWalker(GenericASTTraversal, object):
return
n_subclasses = len(node[:-1])
if n_subclasses > 0 or self.version > 2.1:
if n_subclasses > 0 or self.version > 2.4:
# Not an old-style pre-2.2 class
self.write('(')
@@ -1518,7 +1518,7 @@ class SourceWalker(GenericASTTraversal, object):
self.write(sep, value)
sep = line_separator
if n_subclasses > 0 or self.version > 2.1:
if n_subclasses > 0 or self.version > 2.4:
# Not an old-style pre-2.2 class
self.write(')')