You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
detected old-style Python 2.4 class better
This commit is contained in:
12
ChangeLog
12
ChangeLog
@@ -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>
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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(')')
|
||||
|
||||
|
Reference in New Issue
Block a user