You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Small changes and administrivia
This commit is contained in:
4
LICENSE
4
LICENSE
@@ -1,6 +1,6 @@
|
|||||||
Copyright (c) 1998-2002 John Aycock
|
|
||||||
Copyright (c) 2000 by hartmut Goebel <h.goebel@crazy-compilers.com>
|
|
||||||
Copyright (c) 2015 by Rocky Bernstein
|
Copyright (c) 2015 by Rocky Bernstein
|
||||||
|
Copyright (c) 2000 by hartmut Goebel <h.goebel@crazy-compilers.com>
|
||||||
|
Copyright (c) 1998-2002 John Aycock
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
a copy of this software and associated documentation files (the
|
a copy of this software and associated documentation files (the
|
||||||
|
2
PKG-INFO
2
PKG-INFO
@@ -5,6 +5,6 @@ Summary: Python byte-code to source-code converter
|
|||||||
Home-page: http://github.com/rocky/python-uncompyle6
|
Home-page: http://github.com/rocky/python-uncompyle6
|
||||||
Author: Rocky
|
Author: Rocky
|
||||||
Author-email: rb@dustyfeet.com
|
Author-email: rb@dustyfeet.com
|
||||||
License: GPLv3
|
License: MIT
|
||||||
Description: UNKNOWN
|
Description: UNKNOWN
|
||||||
Platform: UNKNOWN
|
Platform: UNKNOWN
|
||||||
|
@@ -32,7 +32,7 @@ author = "Rocky Bernstein, Hartmut Goebel, John Aycock, and others"
|
|||||||
author_email = "rb@dustyfeet.com"
|
author_email = "rb@dustyfeet.com"
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': [
|
'console_scripts': [
|
||||||
'uncompyle6=uncompyle6.bin.uncompile:main_bin',
|
'uncompyle6=uncompyle6.bin:main_bin',
|
||||||
'pydisassemble=uncompyle6.bin.pydisassemble:main',
|
'pydisassemble=uncompyle6.bin.pydisassemble:main',
|
||||||
]}
|
]}
|
||||||
ftp_url = None
|
ftp_url = None
|
||||||
|
@@ -1,12 +1,9 @@
|
|||||||
Files in this directory contain very simnple constructs that work
|
Files in this directory contain very simple constructs.
|
||||||
across all versions of Python.
|
Some of these don't work across across all versions of Python.
|
||||||
|
|
||||||
Their simplicity is to try to make it easier to debug scanner, grammar
|
Their simplicity is to try to make it easier to debug scanner, grammar
|
||||||
and semantic-action routines.
|
and semantic-action routines.
|
||||||
|
|
||||||
We also try to make the code here runnable by Python and when run should
|
|
||||||
not produce an error.
|
|
||||||
|
|
||||||
The numbers in the filenames are to assist running the programs from
|
The numbers in the filenames are to assist running the programs from
|
||||||
the simplest to more complex. For example, many tests have assignment
|
the simplest to more complex. For example, many tests have assignment
|
||||||
statements or function calls, so we want to test those constructs
|
statements or function calls, so we want to test those constructs
|
||||||
|
@@ -1,10 +1,9 @@
|
|||||||
# Copyright (c) 2015-2016 by Rocky Bernstein
|
# Copyright (c) 2015-2016 by Rocky Bernstein
|
||||||
"""
|
"""
|
||||||
Python 3 bytecode scanner/deparser
|
Python 3.3 bytecode scanner/deparser
|
||||||
|
|
||||||
This overlaps Python's 3.3's dis module, but it can be run from
|
This sets up opcodes Python's 3.3 and calls a generalized
|
||||||
Python 2 and other versions of Python. Also, we save token information
|
scanner routine for Python 3.
|
||||||
for later use in deparsing.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
@@ -30,7 +30,7 @@ if __name__ == "__main__":
|
|||||||
if PYTHON_VERSION >= 3.2:
|
if PYTHON_VERSION >= 3.2:
|
||||||
import inspect
|
import inspect
|
||||||
co = inspect.currentframe().f_code
|
co = inspect.currentframe().f_code
|
||||||
tokens, customize = Scanner34(3.4).disassemble(co)
|
tokens, customize = Scanner34().disassemble(co)
|
||||||
for t in tokens:
|
for t in tokens:
|
||||||
print(t)
|
print(t)
|
||||||
pass
|
pass
|
||||||
|
@@ -29,10 +29,10 @@ if __name__ == "__main__":
|
|||||||
if PYTHON_VERSION == 3.5:
|
if PYTHON_VERSION == 3.5:
|
||||||
import inspect
|
import inspect
|
||||||
co = inspect.currentframe().f_code
|
co = inspect.currentframe().f_code
|
||||||
tokens, customize = Scanner35(3.5).disassemble(co)
|
tokens, customize = Scanner35().disassemble(co)
|
||||||
for t in tokens:
|
for t in tokens:
|
||||||
print(t.format())
|
print(t.format())
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
print("Need to be Python 3.5to demo; I am %s." %
|
print("Need to be Python 3.5 to demo; I am %s." %
|
||||||
PYTHON_VERSION)
|
PYTHON_VERSION)
|
||||||
|
Reference in New Issue
Block a user