Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Update email and URLs for original author. #10

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PKG-INFO
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Version: 1.1
Summary: Python byte-code to source-code converter
Home-page: http://github.com/sysfrog/uncompyle
Author: Hartmut Goebel
Author-email: [email protected]
Author-email: [email protected]
License: GPLv3
Description: UNKNOWN
Platform: UNKNOWN
21 changes: 12 additions & 9 deletions README
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@

uncompyle2 -- A Python 2.7 byte-code decompiler
0.12
2012-1-23
uncompyle2
A Python 2.7 byte-code decompiler, written in Python 2.7
0.13
2012-2-22

Introduction
------------

'uncompyle2' converts Python byte-code back into equivalent Python
source. It accepts byte-code from Python version 2.7 only.
source. It accepts byte-code from Python version 2.7 only. Additionally,
it will only run on Python 2.7.

The generated source is very readable: docstrings, lists, tuples and
hashes get pretty-printed.
Expand All @@ -17,13 +19,14 @@ by compiling it and comparing both byte-codes.

'uncompyle2' is based on John Aycock's generic small languages compiler
'spark' (http://www.csr.uvic.ca/~aycock/python/) and his prior work on
'uncompyle'.
a tool called 'decompyle'. This tool has been vastly improved by
Hartmut Goebel `http://www.crazy-compilers.com/`_

Additional note (3 July 2004, Ben Burton):

The original website from which this software was obtained is no longer
available. It has now become a commercial decompilation service, with
no software available for download.
This software is no longer available from the original website. It
has now become a commercial decompilation service, with no
software available for download.

Any developers seeking to make alterations or enhancements to this code
should therefore consider these debian packages an appropriate starting
Expand Down Expand Up @@ -51,7 +54,7 @@ Features
Requirements
------------

'decompile' requires Python 2.2 or later.
uncompyle2 requires Python 2.7


Installation
Expand Down
6 changes: 5 additions & 1 deletion scripts/uncompyle2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python2.7
# Mode: -*- python -*-
#
# Copyright (c) 2000-2002 by hartmut Goebel <hartmut@goebel.noris.de>
# Copyright (c) 2000-2002 by hartmut Goebel <h.goebel@crazy-compilers.com>
#
"""
Usage: uncompyle [OPTIONS]... [ FILE | DIR]...
Expand Down Expand Up @@ -48,6 +48,10 @@ import os.path
from uncompyle2 import main, verify
import time

if sys.version[:3] != '2.7':
print >>sys.stderr, 'Error: uncompyle2 requires Python 2.7.'
sys.exit(-1)

showasm = showast = do_verify = numproc = recurse_dirs = 0
outfile = '-'
out_base = None
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[bdist_rpm]
release = 1
packager = Hartmut Goebel <hartmut.goebel@noris.net>
packager = Hartmut Goebel <h.goebel@crazy-compilers.com>
doc_files = README
# CHANGES.txt
# USAGE.txt
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
version = "1.1",
description = "Python byte-code to source-code converter",
author = "Hartmut Goebel",
author_email = "[email protected]",
author_email = "[email protected]",
url = "http://github.com/sysfrog/uncompyle",
packages=['uncompyle2'],
scripts=['scripts/uncompyle2'],
Expand Down
2 changes: 1 addition & 1 deletion test/compile_tests
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ compile_tests -- compile test patterns for the decompyle test suite
This source is part of the decompyle test suite.

decompyle is a Python byte-code decompiler
See http://www.goebel-consult.de/decompyle/ for download and
See http://www.crazy-compilers.com/decompyle/ for
for further information
"""

Expand Down
2 changes: 1 addition & 1 deletion test/test_applyEquiv.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This simple program is part of the decompyle test suite.
#
# decompyle is a Python byte-code decompiler
# See http://www.goebel-consult.de/decompyle/ for download and
# See http://www.crazy-compilers.com/decompyle/ for
# for further information

def kwfunc(**kwargs):
Expand Down
2 changes: 1 addition & 1 deletion test/test_augmentedAssign.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
This source is part of the decompyle test suite.

decompyle is a Python byte-code decompiler
See http://www.goebel-consult.de/decompyle/ for download and
See http://www.crazy-compilers.com/decompyle/ for
for further information
"""

Expand Down
2 changes: 1 addition & 1 deletion test/test_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
This source is part of the decompyle test suite.

decompyle is a Python byte-code decompiler
See http://www.goebel-consult.de/decompyle/ for download and
See http://www.crazy-compilers.com/decompyle/ for
for further information
"""

Expand Down
2 changes: 1 addition & 1 deletion test/test_del.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Snippet taken from python libs's test_class.py

decompyle is a Python byte-code decompiler
See http://www.goebel-consult.de/decompyle/ for download and
See http://www.crazy-compilers.com/decompyle/ for
for further information
"""

Expand Down
2 changes: 1 addition & 1 deletion test/test_docstring.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This simple program is part of the decompyle test suite.
#
# decompyle is a Python byte-code decompiler
# See http://www.goebel-consult.de/decompyle/ for download and
# See http://www.crazy-compilers.com/decompyle/ for
# for further information

'''
Expand Down
2 changes: 1 addition & 1 deletion test/test_exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This simple program is part of the decompyle test suite.
#
# decompyle is a Python byte-code decompiler
# See http://www.goebel-consult.de/decompyle/ for download and
# See http://www.crazy-compilers.com/decompyle/ for
# for further information

testcode = 'a = 12'
Expand Down
2 changes: 1 addition & 1 deletion test/test_expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This simple program is part of the decompyle test suite.
#
# decompyle is a Python byte-code decompiler
# See http://www.goebel-consult.de/decompyle/ for download and
# See http://www.crazy-compilers.com/decompyle/ for
# for further information

def _lsbStrToInt(str):
Expand Down
2 changes: 1 addition & 1 deletion test/test_extendedImport.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This simple program is part of the decompyle test suite.
#
# decompyle is a Python byte-code decompiler
# See http://www.goebel-consult.de/decompyle/ for download and
# See http://www.crazy-compilers.com/decompyle/ for
# for further information

import os, sys as System, time
Expand Down
2 changes: 1 addition & 1 deletion test/test_extendedPrint.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This simple program is part of the decompyle test suite.
#
# decompyle is a Python byte-code decompiler
# See http://www.goebel-consult.de/decompyle/ for download and
# See http://www.crazy-compilers.com/decompyle/ for
# for further information

import sys
Expand Down
2 changes: 1 addition & 1 deletion test/test_extendedarg.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This simple program is part of the decompyle test suite.
#
# decompyle is a Python byte-code decompiler
# See http://www.goebel-consult.de/decompyle/ for download and
# See http://www.crazy-compilers.com/decompyle/ for
# for further information

for i in range(1<<15+1):
Expand Down
2 changes: 1 addition & 1 deletion test/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This source is part of the decompyle test suite.
#
# decompyle is a Python byte-code decompiler
# See http://www.goebel-consult.de/decompyle/ for download and
# See http://www.crazy-compilers.com/decompyle/ for
# for further information

def x0():
Expand Down
2 changes: 1 addition & 1 deletion test/test_global.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
This source is part of the decompyle test suite.

decompyle is a Python byte-code decompiler
See http://www.goebel-consult.de/decompyle/ for download and
See http://www.crazy-compilers.com/decompyle/ for
for further information
"""

Expand Down
2 changes: 1 addition & 1 deletion test/test_globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This simple program is part of the decompyle test suite.
#
# decompyle is a Python byte-code decompiler
# See http://www.goebel-consult.de/decompyle/ for download and
# See http://www.crazy-compilers.com/decompyle/ for
# for further information

def f():
Expand Down
2 changes: 1 addition & 1 deletion test/test_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
This source is part of the decompyle test suite.

decompyle is a Python byte-code decompiler
See http://www.goebel-consult.de/decompyle/ for download and
See http://www.crazy-compilers.com/decompyle/ for
for further information
"""

Expand Down
2 changes: 1 addition & 1 deletion test/test_import_as.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
This source is part of the decompyle test suite.

decompyle is a Python byte-code decompiler
See http://www.goebel-consult.de/decompyle/ for download and
See http://www.crazy-compilers.com/decompyle/ for
for further information
"""

Expand Down
2 changes: 1 addition & 1 deletion test/test_integers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Snippet taken from python libs's test_class.py

decompyle is a Python byte-code decompiler
See http://www.goebel-consult.de/decompyle/ for download and
See http://www.crazy-compilers.com/decompyle/ for
for further information
"""

Expand Down
2 changes: 1 addition & 1 deletion test/test_lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This simple program is part of the decompyle test suite.
#
# decompyle is a Python byte-code decompiler
# See http://www.goebel-consult.de/decompyle/ for download and
# See http://www.crazy-compilers.com/decompyle/ for
# for further information

palette = map(lambda a: (a,a,a), range(256))
Expand Down
2 changes: 1 addition & 1 deletion test/test_listComprehensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This simple program is part of the decompyle test suite.
#
# decompyle is a Python byte-code decompiler
# See http://www.goebel-consult.de/decompyle/ for download and
# See http://www.crazy-compilers.com/decompyle/ for
# for further information

XXX = range(4)
Expand Down
2 changes: 1 addition & 1 deletion test/test_loops.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
This source is part of the decompyle test suite.

decompyle is a Python byte-code decompiler
See http://www.goebel-consult.de/decompyle/ for download and
See http://www.crazy-compilers.com/decompyle/ for
for further information
"""

Expand Down
2 changes: 1 addition & 1 deletion test/test_loops2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
This source is part of the decompyle test suite.

decompyle is a Python byte-code decompiler
See http://www.goebel-consult.de/decompyle/ for download and
See http://www.crazy-compilers.com/decompyle/ for
for further information
"""

Expand Down
2 changes: 1 addition & 1 deletion test/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Snippet taken from python libs's test_class.py
#
# decompyle is a Python byte-code decompiler
# See http://www.goebel-consult.de/decompyle/ for download and
# See http://www.crazy-compilers.com/decompyle/ for
# for further information

raise "This program can't be run"
Expand Down
2 changes: 1 addition & 1 deletion test/test_nested_elif.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This simple program is part of the decompyle test suite.
#
# decompyle is a Python byte-code decompiler
# See http://www.goebel-consult.de/decompyle/ for download and
# See http://www.crazy-compilers.com/decompyle/ for
# for further information

a = None
Expand Down
2 changes: 1 addition & 1 deletion test/test_nested_scopes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This source is part of the decompyle test suite.
#
# decompyle is a Python byte-code decompiler
# See http://www.goebel-consult.de/decompyle/ for download and
# See http://www.crazy-compilers.com/decompyle/ for
# for further information

from __future__ import nested_scopes
Expand Down
2 changes: 1 addition & 1 deletion test/test_prettyprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
This source is part of the decompyle test suite.

decompyle is a Python byte-code decompiler
See http://www.goebel-consult.de/decompyle/ for download and
See http://www.crazy-compilers.com/decompyle/ for
for further information
"""

Expand Down
2 changes: 1 addition & 1 deletion test/test_print.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This simple program is part of the decompyle test suite.
#
# decompyle is a Python byte-code decompiler
# See http://www.goebel-consult.de/decompyle/ for download and
# See http://www.crazy-compilers.com/decompyle/ for
# for further information

print 1,2,3,4,5
Expand Down
2 changes: 1 addition & 1 deletion test/test_print_to.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
This source is part of the decompyle test suite.

decompyle is a Python byte-code decompiler
See http://www.goebel-consult.de/decompyle/ for download and
See http://www.crazy-compilers.com/decompyle/ for
for further information
"""
import sys
Expand Down
2 changes: 1 addition & 1 deletion test/test_slices.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Snippet taken from python libs's test_class.py

decompyle is a Python byte-code decompiler
See http://www.goebel-consult.de/decompyle/ for download and
See http://www.crazy-compilers.com/decompyle/ for
for further information
"""

Expand Down
2 changes: 1 addition & 1 deletion test/test_tuple_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
This source is part of the decompyle test suite.

decompyle is a Python byte-code decompiler
See http://www.goebel-consult.de/decompyle/ for download and
See http://www.crazy-compilers.com/decompyle/ for
for further information
"""

Expand Down
2 changes: 1 addition & 1 deletion test/test_tuples.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
This source is part of the decompyle test suite.

decompyle is a Python byte-code decompiler
See http://www.goebel-consult.de/decompyle/ for download and
See http://www.crazy-compilers.com/decompyle/ for
for further information
"""

Expand Down
Loading